Skip to content

Commit 6ba1e36

Browse files
committed
Allow @wp-hook ignore of return type for private methods
1 parent 3591771 commit 6ba1e36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Inpsyde/PhpcsHelpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ public static function isHookFunction(File $file, int $functionPosition): bool
384384
}
385385

386386
$findDocEnd = $file->findPrevious(
387-
[T_WHITESPACE, T_FINAL, T_PUBLIC, T_ABSTRACT],
387+
[T_WHITESPACE, T_FINAL, T_PUBLIC, T_PRIVATE, T_PROTECTED, T_ABSTRACT],
388388
$functionPosition - 1,
389389
null,
390390
true,

0 commit comments

Comments
 (0)