AmpersandHQ / ampersand-magento2-upgrade-patch-helper

Helper script to aid upgrading magento 2 websites by detecting overrides. Now supports third party module detections
GNU Lesser General Public License v3.0
320 stars 38 forks source link

Update ClassPluginPhp.php (fix #103) #104

Closed convenient closed 1 year ago

convenient commented 1 year ago

See https://github.com/AmpersandHQ/ampersand-magento2-upgrade-patch-helper/issues/103#issue-1796759590

Handle cases where the plugin definition has not been fully formed.

Without this change you get a failure like

Test 'FunctionalTests::testMagentoTwoFourFivePointOneNoDb' started
In ClassPluginPhp.php line 78:

  Undefined array key "instance"  

analyse [-a|--auto-theme-update [AUTO-THEME-UPDATE]] [--sort-by-type] [--phpstorm-threeway-diff-commands] [--vendor-namespaces [VENDOR-NAMESPACES]] [--filter FILTER] [--pad-table-columns PAD-TABLE-COLUMNS] [--php-strict-errors] [--show-info] [--] <project>
Test 'FunctionalTests::testMagentoTwoFourFivePointOneNoDb' ended

Checklist