Skip to content

Commit

Permalink
Add missing return types
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Dec 1, 2018
1 parent 429ed97 commit 610ac7a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/BustCache/BustCacheMacro.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,21 @@ public function initialize(): void
}

/**
* @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
* @return mixed[]|null [prolog, epilog]
*/
public function finalize()
public function finalize(): ?array
{
return null;
}

/**
* New node is found. Returns FALSE to reject.
*
* @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint
* @param MacroNode $node
* @return bool
* @throws IOException
*/
public function nodeOpened(MacroNode $node)
public function nodeOpened(MacroNode $node): bool
{
if ($node->prefix !== '' && $node->prefix !== null) {
return false;
Expand Down

0 comments on commit 610ac7a

Please sign in to comment.