v1.3.0
·
0 commits
to f8002a7ecf9fe772f8b921aae72196200b0dcd8f
since this release
Added
Apermo.PHP.ForbiddenObjectCastsniff: warns on
(object)casts that implicitly createstdClass
instances. Use typed classes instead.SlevomatCodingStandard.PHP.ForbiddenClassesconfig:
warns onnew \stdClass()usage. Use typed classes
instead.Apermo.Hooks.RequireHookDocBlocksniff: warns when
WordPress hook invocations (do_action,
apply_filters, etc.) lack a preceding PHPDoc block.
Checks for@paramand@returntags. Supports
_ref_arrayand_deprecatedvariants.Apermo.Formatting.ConsistentAssignmentAlignment
sniff: warns when consecutive assignment statements
mix single-space and aligned styles. Either all=
operators align to the same column, or all use a
single space — mixing is flagged.Apermo.Arrays.ConsistentDoubleArrowAlignmentsniff:
warns when multi-line arrays mix single-space and
aligned=>styles. Same consistency rule as the
assignment alignment sniff.
Changed
- Exclusion comments for
Generic.Formatting.MultipleStatementAlignmentand
WordPress.Arrays.MultipleStatementAlignmentnow say
"Superseded by" the new Apermo alignment sniffs.