[Halo] Use array typehint instead of callable typehint
Review Request #815 — Created Nov. 8, 2021 and submitted
Information | |
---|---|
pprkut | |
Lunr.Halo | |
264f097... | |
Reviewers | |
lunr | |
Callable is actually wrong, since we need an array format here with class and method it in, otherwise we can't determine the parameters we need to pass to uopz. Not all callables provide that info.
Unit tests
-
-
src/Lunr/Halo/LunrBaseTest.php (Diff revision 1) We might be able to improve this with https://phpstan.org/writing-php-code/phpdoc-types#array-shapes