Exakat 2.1.8 Review Exakat 2.1.8 shines with the last warmth of summer. It is now time to start the resolute road to PHP 8.0 and its surprise incompatibility; or update PHP code stubs with the upcoming attributes. During the trip, we’ll stop observing the new SARIF format, the standard for static analysis tool in PHP […]
Typehint Recommendations for All The process of adding strong typing to a PHP code base is a long process. A standard application will require on average 11 000 arguments and return type to add, and that is not counting the properties (everyone is on PHP 7.4, right?) The vast majority of typehints are already in […]
Exakat 2.1.7 Review Exakat 2.1.7 is out, with a treasure trove of new features : Exakat for Github Actions is available; PHP 8.0’s new attributes are supported; the typehint suggestion report includes functions, closures and arrow functions, and even more suggestions; new rules to prevent Global Namespace pollution and detect methods that should be defined […]
Exakat 2.1.6 Review Exakat 2.1.6 keeps the pace with PHP 8.0 development, and tops the count of 400 analysis. While we are waiting for the finalization of the attributes syntax, the first PHP 8.0 analysis is out : it checks for typos in named arguments. And, for the current PHP version, the Type suggestion report […]
Exakat 2.1.5 Review Exakat 2.1.5 is bringing a large chest of treasures : PHP 8.0 support, with named parameters, attributes, match and added a new inventory for too many chained object. The engine upgraded the storage of Typehint and Default values, which lead to several modernisation and coverage extensions, such as ‘typehint are for interface […]
Method fossilisation Fossilisation happens when things get harder to update. It is a process, more than a final state. In particular, it happens to methods when the signature is shared across multiple classes. With interfaces and inheritance, changing some of the elements of a method’s signature means refactoring the code in several other locations. The […]
Exakat 1.9.9 Review Exakat focuses on automated updates this week : two new reports (and sections) provide recommendations to use Rector and Php-cs-fixer for fixing, en masse, issues found during an audit. Also, no less than 9 new rules were added to Exakat, and a new inventory for mbstring encoding. The Exakat 1.9.9 review is the best […]
Exakat 1.9.8 Review This week, Exakat upgrades the presentation of the inventories. It refactored the method definition detection, and added new rule for hiding parameters and wrong case. Several modernisations were applied, in particular to the ‘Insufficient typehint’ rule. Coding is inherently risky, and it helps to readd the Exakat 1.9.7 review. Upgraded Inventories Code […]
Setting exceptions at the right place : when you need to throw an exception somewhere else than the most useful line of code
Exakat 1.9.5 includes analysis that prevents code from decaying, or warn you early about it : useless type checks thanks to Typehint, non-implemented interfaces, incompatible signatures with PHP 7.3, wrong expectations with interface typehints. Also, PHP 7.4 migration was upgraded with the upcoming change of bit shift precedence versus concatenation. And, Ambassador reports typehints for […]