Skip to content

Commit

Permalink
Renderable_Block Interface - Fixing wrong type hinting for $inner_blo…
Browse files Browse the repository at this point in the history
…ck_content.
  • Loading branch information
iruzevic committed Nov 6, 2019
1 parent 677f6c1 commit aaf6d3e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/blocks/interface-renderable-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,21 @@
*
* 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 {

/**
* 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;
}

0 comments on commit aaf6d3e

Please sign in to comment.