Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Nov 27, 2023
1 parent 9a9adbd commit fed26de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Class/Method/Method.php
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,8 @@ public function compile(CompilationContext $compilationContext): void
*/
if (
'return' !== $lastType &&
'throw' !== $lastType && !$this->hasChildReturnStatementType($statement) &&
'throw' !== $lastType &&
!$this->hasChildReturnStatementType($statement) &&
$this->hasReturnTypes()

Check warning on line 1852 in src/Class/Method/Method.php

View check run for this annotation

Codecov / codecov/patch

src/Class/Method/Method.php#L1849-L1852

Added lines #L1849 - L1852 were not covered by tests
) {
throw new CompilerException(
Expand Down

0 comments on commit fed26de

Please sign in to comment.