Skip to content

Bugfix for Array (Simple) #62

Description

@kirillminiaev

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions