Skip to content

Commit 02888e6

Browse files
committed
Classes/DeclarationCompatibility: use PHPCSUtils for retrieving name of extended class
1 parent d0e14ef commit 02888e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPressVIPMinimum/Sniffs/Classes/DeclarationCompatibilitySniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ protected function processTokenWithinScope( File $phpcsFile, $stackPtr, $currSco
211211

212212
$methodName = FunctionDeclarations::getName( $phpcsFile, $stackPtr );
213213

214-
$parentClassName = $phpcsFile->findExtendedClassName( $currScope );
214+
$parentClassName = ObjectDeclarations::findExtendedClassName( $phpcsFile, $currScope );
215215
if ( $parentClassName === false ) {
216216
// This class does not extend any other class.
217217
return;

0 commit comments

Comments
 (0)