Is a good practice aliasing php native functions?

74 Views Asked by At

would help PSR naming conventions. Would it be a good practice?

Example:

use function array_keys as getArrayKeys;
1

There are 1 best solutions below

1
Andreas On

It sounds as a bad practice in my opinion.
For the current project/page no harm is really done but in the long run you may/will forget what the real functions names are.
On the next project you will try getArrayKeys and it won't work.