phamda icon indicating copy to clipboard operation
phamda copied to clipboard

problem with PHP 8

Open mmikeyy opened this issue 2 years ago • 0 comments

Many functions use the php function "method_exists" to check if a given method is defined in an object being operated on. For example, P::map($val, $fn) checks if $val has the method 'map' defined as a first step in order to use the object's method if it does exist. With versions of PHP < 8, method_exists($array, 'method') returns false. With PHP 8, it crashes as method_exists accepts only objects or classes.

As a result, Phamda is no longer usable.

mmikeyy avatar Aug 13 '21 03:08 mmikeyy