Skip to content

Commit

Permalink
Return type and inheritance bug fixing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Brecht-Precht committed Dec 1, 2018
1 parent caebf39 commit dfd8efb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Block/BlockInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ public function onAttach(BlockParentInterface $blockParent);
public function onDetach();

/**
* @noinspection ReturnTypeCanBeDeclaredInspection
* @return BlockParentInterface
*/
public function getParent(): BlockParentInterface;
public function getParent();

/**
* @param HandlerInterface $markdomHandler
Expand Down
3 changes: 2 additions & 1 deletion src/Block/ListItemInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ interface ListItemInterface extends BlockParentInterface
{

/**
* @noinspection ReturnTypeCanBeDeclaredInspection
* @return ListBlockInterface
*/
public function getParent(): ListBlockInterface;
public function getParent();

/**
* @param ListBlockInterface $listBlock
Expand Down
3 changes: 2 additions & 1 deletion src/Content/ContentInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ interface ContentInterface extends NodeInterface
public function getContentType(): string;

/**
* @noinspection ReturnTypeCanBeDeclaredInspection
* @return ContentParentInterface
*/
public function getParent(): ContentParentInterface;
public function getParent();

/**
* @return BlockInterface
Expand Down

0 comments on commit dfd8efb

Please sign in to comment.