What are the most common tools (saas or installed) that are used with #PHP application and component.
composer, OK. git, OK.
And then?
https://www.exakat.io/en/common-services-with-php-application/
What are the most common tools (saas or installed) that are used with #PHP application and component.
composer, OK. git, OK.
And then?
https://www.exakat.io/en/common-services-with-php-application/
Avoid comparisons with #PHP get_class()
get_class() should be replaced with the instanceof operator to check the class of an object.
instanceof actually resolves the name, using the local namespace and aliases. It is also faster.
https://exakat.readthedocs.io/en/latest/Reference/Rules/Structures/UseInstanceof.html
Lone Blocks In #PHP
Grouped code without a commanding structure is useless and may be removed.
Most often, it is a ruin from a previous flow control instruction, whose condition was removed or commented. They should be removed.
https://exakat.readthedocs.io/en/latest/Reference/Rules/Structures/LoneBlock.html
#PHP : here are some irreconciliable differences between is_a() and instanceof.
For some reason, instanceof doesn't accept the :: operator : nor static method, nor class constants : only static properties.