Skip to content

Commit e6eb9fe

Browse files
author
Vitaliy
authored
Merge pull request #21 from pqrth/di-autocomplete
[WIP] Adds PhpStorm's meta plugin file
2 parents 8b6a5c0 + 6e0ea05 commit e6eb9fe

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
namespace PHPSTORM_META {
4+
override(\Magento\Framework\ObjectManagerInterface::get(0), map(['' => '@']));
5+
override(\Magento\Framework\ObjectManagerInterface::create(0), map(['' => '@']));
6+
}

META-INF/plugin.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,12 @@
9999

100100
<directoryProjectConfigurator implementation="com.magento.idea.magento2plugin.project.ProjectDetector"/>
101101

102+
<libraryRoot id=".phpstorm.meta.php" path="/.phpstorm.meta.php/" runtime="false"/>
103+
102104
<localInspection language="PHP" groupPath="PHP"
103105
shortName="PluginInspection" displayName="Inspection for the Plugin declaration"
104106
groupName="Magento" enabledByDefault="true" level="ERROR"
105107
implementationClass="com.magento.idea.magento2plugin.inspections.php.PluginInspection"/>
106-
107108
</extensions>
108109

109110
<application-components>

0 commit comments

Comments
 (0)