From 94042109d17f6f47ef435863a88f9f0de4721a48 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 27 Nov 2023 12:00:22 -0600 Subject: [PATCH] more phpcs --- src/Class/Method/Method.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Class/Method/Method.php b/src/Class/Method/Method.php index d04e63434..f0ccf328a 100644 --- a/src/Class/Method/Method.php +++ b/src/Class/Method/Method.php @@ -1845,10 +1845,10 @@ public function compile(CompilationContext $compilationContext): void * If a method has return-type hints we need to ensure the last * statement is a 'return' statement */ - if ('return' !== $lastType && - 'throw' !== $lastType && - !$this->hasChildReturnStatementType($statement) && - $this->hasReturnTypes() + if ('return' !== $lastType + && 'throw' !== $lastType + && !$this->hasChildReturnStatementType($statement) + && $this->hasReturnTypes() ) { throw new CompilerException( 'Reached end of the method without returning a valid type specified in the return-type hints',