1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-23 06:33:22 +02:00

Extra tests and minor cleanup for PHP 8.3.

This commit is contained in:
camer0n
2023-11-28 12:17:53 -08:00
parent ab64f0f7bf
commit ea8a814ab4
6 changed files with 179 additions and 138 deletions

View File

@@ -64,17 +64,19 @@ class override {
$this->override_function($arr, $function, $include);
}
/**
* check if an override exists
* @param $override : function name or class object
* @param $method : method name when 'class' is used for $override
* @return mixed
* @param object|string $override : function name or class object
* @param string $method : method name when 'class' is used for $override
* @example if ($user_func = e107::getOverride()->check($this,'secure_image'))
{
return call_user_func($user_func);
}
}
* @return mixed
*/
public function check($override,$method='') // alias with check for class object
public function check($override,$method='')
{
if($method != '')