mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
N°5655 - Fix is_callable() call for PHP 8.0+
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user