Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with PHP 8 #2

Open
mmikeyy opened this issue Aug 13, 2021 · 0 comments
Open

problem with PHP 8 #2

mmikeyy opened this issue Aug 13, 2021 · 0 comments

Comments

@mmikeyy
Copy link

mmikeyy commented Aug 13, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant