We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72ca65f commit 873777aCopy full SHA for 873777a
autoload.php
@@ -16,10 +16,17 @@
16
17
if (!isset($container) || !$container instanceof Container) {
18
echo 'No container found, or container not of expected type' . PHP_EOL;
19
- return;
+ die(-1);
20
}
21
22
foreach ($container->getServicesByTag('phpstan.magento.autoloader') as $autoloader) {
23
- /** @var Autoloader $autoloader */
+ /** @var Autoloader|object $autoloader */
24
+ if (!$autoloader instanceof Autoloader) {
25
+ echo 'Services tagged with \'phpstan.magento.autoloader\' must extend ' .
26
+ 'bitExpert\PHPStan\Magento\Autoload\Autoloader!' . PHP_EOL .
27
+ get_class($autoloader) . ' does not.' . PHP_EOL;
28
29
+ }
30
+
31
$autoloader->register();
32
0 commit comments