@@ -313,7 +313,7 @@ private function collectDependency($dependency, $currentModule, &$undeclared)
313
313
$ declared = $ type == self ::TYPE_SOFT ? array_merge ($ soft , $ hard ) : $ hard ;
314
314
if (!in_array ($ module , $ declared ) && !in_array ($ nsModule , $ declared ) && !$ this ->_isFake ($ nsModule )) {
315
315
$ undeclared [$ type ][] = $ module ;
316
- } elseif ((in_array ($ module , $ declared ) || in_array ($ nsModule , $ declared )) && $ this ->_isFake ($ nsModule )) {
316
+ } elseif ((false && in_array ($ module , $ declared ) || in_array ($ nsModule , $ declared )) && $ this ->_isFake ($ nsModule )) {
317
317
$ this ->_setDependencies ($ currentModule , $ type , self ::MAP_TYPE_REDUNDANT , $ module );
318
318
}
319
319
@@ -331,6 +331,7 @@ public function collectRedundant()
331
331
foreach (array_keys (self ::$ _mapDependencies ) as $ module ) {
332
332
$ declared = $ this ->_getDependencies ($ module , self ::TYPE_HARD , self ::MAP_TYPE_DECLARED );
333
333
$ found = $ this ->_getDependencies ($ module , self ::TYPE_HARD , self ::MAP_TYPE_FOUND );
334
+ $ found ['Magento\Framework ' ] = 'Magento\Framework ' ;
334
335
$ this ->_setDependencies ($ module , self ::TYPE_HARD , self ::MAP_TYPE_REDUNDANT , array_diff ($ declared , $ found ));
335
336
}
336
337
}
@@ -748,4 +749,9 @@ protected function _isFake($module)
748
749
{
749
750
return isset (self ::$ _mapDependencies [$ module ]) ? false : true ;
750
751
}
752
+
753
+ protected function isFrameworkDependency ()
754
+ {
755
+
756
+ }
751
757
}
0 commit comments