Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix spl_autoload_register PHPStan warning
> Parameter #1 $callback of function spl_autoload_register expects > (callable(string): void)|null, Closure(string): bool given. Two changes were needed to match the parameter type expected by PHPStan: 1. Promote the 'get_class_loc' string to first-class callable syntax (see smrealms#1183). 2. Remove the boolean return value from `get_class_loc`. This was a "speculative" feature added in 3f6854f, but it doesn't conform to the expected interface nor is it needed for the autoloader to throw an Error if the class is not found.
- Loading branch information