Skip to content

Commit

Permalink
ExtensionSorter: Fix logic error in method exist detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Jul 14, 2021
1 parent 4218678 commit 9c525ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ExtensionSorter.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private static function invokeStaticMethodSafe(string $class, string $method): ?
foreach ($ref->getAttributes(ExtensionsMeta::class) as $attribute) {
$return[] = $attribute->getArguments()[$method] ?? [];
}
if (\method_exists($class, $method) === false) { // back compatibility
if (\method_exists($class, $method) === true) { // back compatibility
/** @phpstan-ignore-next-line */
$methodReturn = ((array) call_user_func($class . '::' . $method)) ?: null;
if ($methodReturn !== null) {
Expand Down

0 comments on commit 9c525ea

Please sign in to comment.