mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 17:52:45 +01:00
9027bc6190
The idea behind this is that Psalm should not use project autoloader for its own things. So if we have a project with autoloader and no code, then any project autoloader hit means Psalm failed to load something itself. Right now it highlights several issues in CoreGenericClasses stub: - usage of `callback` instead of `callable` - `@property-read` not resolving template parameters
7 lines
216 B
PHP
7 lines
216 B
PHP
<?php
|
|
spl_autoload_register(function (string $className) {
|
|
$ex = new RuntimeException('Attempted to load ' . $className);
|
|
echo $ex->__toString() . "\n\n" . $ex->getTraceAsString() . "\n\n";
|
|
exit(70);
|
|
});
|