Skip to content

Commit

Permalink
Merge pull request #104 from AmpersandHQ/fix-issue-103
Browse files Browse the repository at this point in the history
Update ClassPluginPhp.php (fix #103)
  • Loading branch information
convenient authored Jul 11, 2023
2 parents c07d351 + 18f801d commit 63698a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev/TestModule/app/code/Ampersand/Test/etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

<type name="Magento\AdobeIms\Model\UserProfile">
<plugin name="AmpersandTestPluginBeforeAfterAround3\UserProfile" type="Ampersand\Test\Plugin\AdobeImsUserProfile" sortOrder="1" />
<plugin name="AmpersandTestPluginBeforeAfterAround3\UserProfileNoTypeSpecified" />
<plugin name="somethingVirtualPlugin" type="somethingVirtualPlugin"/>
</type>

Expand Down
3 changes: 3 additions & 0 deletions src/Ampersand/PatchHelper/Checks/ClassPluginPhp.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ public function check()
if (isset($pluginConf['disabled']) && $pluginConf['disabled']) {
continue;
}
if (!isset($pluginConf['instance'])) {
continue;
}
$pluginClass = $pluginConf['instance'];
$pluginClass = ltrim($pluginClass, '\\');

Expand Down

0 comments on commit 63698a0

Please sign in to comment.