diff --git a/WordPressVIPMinimum/Sniffs/Hooks/AlwaysReturnInFilterSniff.php b/WordPressVIPMinimum/Sniffs/Hooks/AlwaysReturnInFilterSniff.php index d6115611..2cda2587 100644 --- a/WordPressVIPMinimum/Sniffs/Hooks/AlwaysReturnInFilterSniff.php +++ b/WordPressVIPMinimum/Sniffs/Hooks/AlwaysReturnInFilterSniff.php @@ -177,8 +177,8 @@ private function processFunctionBody( $stackPtr ) { $filterName = $this->tokens[ $this->filterNamePtr ]['content']; - $methodProps = $this->phpcsFile->getMethodProperties($stackPtr); - if ($methodProps['is_abstract'] === true) { + $methodProps = $this->phpcsFile->getMethodProperties( $stackPtr ); + if ( $methodProps['is_abstract'] === true ) { $message = 'The callback for the `%s` filter hook-in points to an abstract method. Please, make sure that all child class implementations of this abstract method always return a value.'; $data = [ $filterName ]; $this->phpcsFile->addWarning( $message, $stackPtr, 'AbstractMethod', $data );