diff --git a/CHANGELOG.md b/CHANGELOG.md index c2f72adbd..e6f1dd9ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a _No documentation available about unreleased changes as of yet._ +## [2.0.2] + +### Fixed + +- Renderable_Block Interface - Fixing wrong type hinting for $inner_block_content. + ## [2.0.1] ### Changed @@ -90,6 +96,7 @@ Init setup [Unreleased]: https://github.com/infinum/eightshift-libs/compare/master...HEAD +[2.0.2]: https://github.com/infinum/eightshift-libs/compare/2.0.1...v2.0.2 [2.0.1]: https://github.com/infinum/eightshift-libs/compare/2.0.0...v2.0.1 [2.0.0]: https://github.com/infinum/eightshift-libs/compare/0.9.0...v2.0.0 [0.9.0]: https://github.com/infinum/eightshift-libs/compare/0.8.0...0.9.0 diff --git a/README.md b/README.md index 6ef83cf7d..c1de950f3 100644 --- a/README.md +++ b/README.md @@ -39,4 +39,4 @@ Eightshift WordPress Libs is maintained and sponsored by ## :scroll: License -Infinum WordPress Libs is Copyright ©2019 Infinum. It is free software, and may be redistributed under the terms specified in the LICENSE file. +Infinum WordPress Libs is Copyright ©2019 Infinum. It is free software, and may be redistributed under the terms specified in the LICENSE file. diff --git a/composer.json b/composer.json index f1772e36f..87ee576cc 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "infinum/eightshift-libs", - "version": "2.0.1", + "version": "2.0.2", "description": "WordPress libs developed by Eightshift team to use in modern WordPress.", "keywords": [ "composer", diff --git a/composer.lock b/composer.lock index 05f9292b7..20964db3d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "674a9d31cccbcc3e3d7fce6c5cf06ad3", + "content-hash": "0f47224d4b20fdd99842018d0e36a567", "packages": [ { "name": "jeremeamia/superclosure", diff --git a/src/blocks/interface-renderable-block.php b/src/blocks/interface-renderable-block.php index d7929114b..8f063f602 100644 --- a/src/blocks/interface-renderable-block.php +++ b/src/blocks/interface-renderable-block.php @@ -15,6 +15,7 @@ * * An object that can be rendered. * + * @since 2.0.2 Fixing wrong type hinting for $inner_block_content. * @since 1.0.0 */ interface Renderable_Block { @@ -22,13 +23,13 @@ interface Renderable_Block { /** * Provides block registration render callback method. * - * @param array $attributes Array of attributes as defined in block's manifest.json. - * @param string $content Block's content. + * @param array $attributes Array of attributes as defined in block's manifest.json. + * @param string $inner_block_content Block's content if using inner blocks. * * @throws \Exception On missing attributes OR missing template. * @return string * * @since 1.0.0 */ - public function render( array $attributes, string $content ) : string; + public function render( array $attributes, $inner_block_content ) : string; }