router
router copied to clipboard
Update Router.php
Aliasing global functions
Why should this be implemented? Any special use or something? 🤔
It has to do with performance — https://www.bram.us/2020/04/18/php-performance-tip-use-fully-qualified-function-calls-when-working-with-namespaces/
bramus is right, though I do believe its should be like this to become a fully qualified name? use function Bramus\Router\array_keys;
Its also convenient for developers that appreciate a quick overview of used functions.
Mh. I actually never thought about this, but it makes perfectly sense. Thanks 👍
LGTM this PR