You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?phptraitMockTrait {
publicstatic$prop;
publicfunctionsomeMethod() {
}
}
// Observed: ERROR: UndefinedClass - src/test.php:7:26 - Class or interface MockTrait does not exist// Expected: should not warn// Output is true
var_export(method_exists('MockTrait', 'someMethod'));
The text was updated successfully, but these errors were encountered:
It seems like my issue was caused by the fact that the autoloader didn't know how to autoload that trait. That trait was in psalm's configured list of directories, but autoloading required switching to the augmented autoloader used for unit tests.
The text was updated successfully, but these errors were encountered: