N°5655 - Fix is_callable() call for PHP 8.0+

This commit is contained in:
Molkobain
2022-12-06 16:04:26 +01:00
parent e5d67d2219
commit 2d122448c8

View File

@@ -97,12 +97,11 @@ class Router
}
$sOperationMethodName = $this->MakeOperationMethodNameFromOperation($sRouteOperation);
$aMethodSpecs = [$sControllerFQCN, $sOperationMethodName];
if (false === is_callable($aMethodSpecs)) {
if (false === method_exists($sControllerFQCN, $sOperationMethodName)) {
return null;
}
return $aMethodSpecs;
return [$sControllerFQCN, $sOperationMethodName];
}
/**