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

Bugfix for Array (Simple) #62

Open
kirillminiaev opened this issue Dec 12, 2022 · 0 comments
Open

Bugfix for Array (Simple) #62

kirillminiaev opened this issue Dec 12, 2022 · 0 comments

Comments

@kirillminiaev
Copy link

At least on PHP v8.1 I was getting the following error:

Trying to access array offset on value of type null in /inc/vendor/digitalnature/php-ref/ref.php on line 472

I was able to fix this locally by adjusting line 472 from

if(in_array($parts[1][0], array('&', '$'), true)){

to

if(is_array($parts[1]) && in_array($parts[1][0], array('&', '$'), true)){

Please confirm if this fix works & if this can be adjusted in your repo.

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