yireo / Yireo_ExtensionChecker

Magento 2 module to check upon the code of Magento 2 modules from the CLI
90 stars 16 forks source link

Warning: Undefined variable $dependency in Scan/ClassInspector.php #20

Closed MagePsycho closed 2 years ago

MagePsycho commented 2 years ago

I tried to use this extension checker on Magento 2.4.4 as:

bin/magento yireo_extensionchecker:scan --module Vendor_Module

But it's giving me this error:

Warning: Undefined variable $dependency in /var/www/html/vendor/yireo/magento2-extensionchecker/Scan/ClassInspector.php on line 112

Is this extension not compatible with 2.4.4?

jissereitsma commented 2 years ago

I've been using this extension under PHP 8.1 and Magento 2.4.4 ever since that release came out. The composer file is reviewed properly to allow for Magento upgrades. So yes, it is compatible.

Instead, let's review the problem. This sounds like a typo to me which is now fixed: https://github.com/yireo/Yireo_ExtensionChecker/commit/bd15a4ee52810ab6d43e8fb14a145be73fad98d1