Skip to content

Commit dfd8efb

Browse files
author
Martin Brecht-Precht
committed
Return type and inheritance bug fixing.
1 parent caebf39 commit dfd8efb

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/Block/BlockInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ public function onAttach(BlockParentInterface $blockParent);
4343
public function onDetach();
4444

4545
/**
46+
* @noinspection ReturnTypeCanBeDeclaredInspection
4647
* @return BlockParentInterface
4748
*/
48-
public function getParent(): BlockParentInterface;
49+
public function getParent();
4950

5051
/**
5152
* @param HandlerInterface $markdomHandler

src/Block/ListItemInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ interface ListItemInterface extends BlockParentInterface
1313
{
1414

1515
/**
16+
* @noinspection ReturnTypeCanBeDeclaredInspection
1617
* @return ListBlockInterface
1718
*/
18-
public function getParent(): ListBlockInterface;
19+
public function getParent();
1920

2021
/**
2122
* @param ListBlockInterface $listBlock

src/Content/ContentInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ interface ContentInterface extends NodeInterface
3030
public function getContentType(): string;
3131

3232
/**
33+
* @noinspection ReturnTypeCanBeDeclaredInspection
3334
* @return ContentParentInterface
3435
*/
35-
public function getParent(): ContentParentInterface;
36+
public function getParent();
3637

3738
/**
3839
* @return BlockInterface

0 commit comments

Comments
 (0)