Skip to content

Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in phpstan #8107

Description

@mfleeson

Bug Report

Subject Details
Rector version 0.14.8

I'm trying to get https://github.com/mfleeson/joomla_com_upgrader (forked from original author who's let it lapse). It works through most of the files fine but then throws a 35 step stack trace, culminating in
Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in phar:///vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflection/ReflectionClass.php:1040

Minimal PHP Code Causing Issue

Expected Behaviour

It should move and rename files to fit in with Joomla 4 coding standards, unfortunately it crashes.

I was wondering if I could get help in debugging it?
Thanks
Mark

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions