Repository navigation
0.17.12
Fixes
The else if to elseif sniff and fixer so far was always just a warning, which usually didn't show the issue.
This has been fixed with a Spryker sniff that now enforces this on an error level.
It will auto-fix itself for code that doesn't yet follow the coding guidelines.
Improvements
Projects as well as libraries can now enable strict_types for PHP files.
<rule ref="Spryker.PHP.DeclareStrictTypesAfterFileDoc">
<properties>
<property name="strictTypesMandatory" value="true"/>
</properties>
</rule>Please note: This can have side effects as type casting is now not happening anymore in some cases.
Also: declare(strict_types=1); is now consistently placed within a PHP file, after the file doc block as per PSR-12 specification.