summaryrefslogtreecommitdiffstats
path: root/system/core/CodeIgniter.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2021-02-04 16:32:53 +0100
committerAndrey Andreev <narf@devilix.net>2021-02-04 16:32:53 +0100
commit0925b5099919300a239909588351a6482c5e792d (patch)
tree4e0596b489defbba7b7590f7e9402035dc338bc5 /system/core/CodeIgniter.php
parent751a2e364131a67ec64f783003866c0fe2df78e0 (diff)
[ci skip] Fix is_callable()-reliant logic broken by PHP 8
Close #6006, #6007
Diffstat (limited to 'system/core/CodeIgniter.php')
-rw-r--r--system/core/CodeIgniter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/CodeIgniter.php b/system/core/CodeIgniter.php
index 2a231ad46..120dba599 100644
--- a/system/core/CodeIgniter.php
+++ b/system/core/CodeIgniter.php
@@ -434,7 +434,7 @@ if ( ! is_php('5.4'))
* ReflectionMethod::isConstructor() is the ONLY reliable check,
* knowing which method will be executed as a constructor.
*/
- elseif ( ! is_callable(array($class, $method)))
+ else
{
$reflection = new ReflectionMethod($class, $method);
if ( ! $reflection->isPublic() OR $reflection->isConstructor())