Skip to content

Commit cd8dfb4

Browse files
committed
[fix] Substitute concrete returns for Interface returns
1 parent 75342fe commit cd8dfb4

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tiny-pixel/blocks",
33
"type": "library",
4-
"version": "1.0.0",
4+
"version": "1.0.2",
55
"description": "For consummate blockbuilders",
66
"license": "MIT",
77
"authors": [

src/Assets.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(Collection $container)
3333
* @param Collection
3434
* @return void
3535
*/
36-
public function enqueueEditorAssets(Collection $blocks): Assets
36+
public function enqueueEditorAssets(Collection $blocks): AssetsInterface
3737
{
3838
$blocks->each(function ($block) {
3939
$block->editorScripts->each(function ($script) {
@@ -54,7 +54,7 @@ public function enqueueEditorAssets(Collection $blocks): Assets
5454
* @param Collection
5555
* @return Assets
5656
*/
57-
public function enqueuePublicAssets(Collection $blocks): Assets
57+
public function enqueuePublicAssets(Collection $blocks): AssetsInterface
5858
{
5959
$blocks->each(function ($block) {
6060
$block->publicScripts->each(function ($script) {

src/Contracts/ViewInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
interface ViewInterface
88
{
9-
public function boot(Object $properties): ViewInterface;
9+
public function boot(Object $config): ViewInterface;
1010

1111
public function render(BlockInterface $block): void;
1212
}

src/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(Collection $container)
4848
* @param Collection container instance
4949
* @return void
5050
*/
51-
public function boot(Object $config): View
51+
public function boot(Object $config): ViewInterface
5252
{
5353
$this->setBaseDir($config->dir . '/');
5454
$this->setCacheDir($config->cache . '/');

0 commit comments

Comments
 (0)