Developer tools

PHP CS Fixer 3.95.32 adjusts two automatic rewrites

The formatter preserves a return statement after an elseif chain in cases where moving it into the final branch would change the control flow.

The project published this release on 17 November 2026 (UTC).

The formatter preserves a return statement after an elseif chain in cases where moving it into the final branch would change the control flow.

The release also keeps closures used as operands of the pipe operator from being rewritten as arrow functions. A dry-run diff on a project using either construct makes the changed formatting decisions easy to review.

Discussion

Sign in to participate.