Closed (fixed)
Project:
Drupal core
Version:
10.5.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Aug 2025 at 20:59 UTC
Updated:
27 Aug 2025 at 15:49 UTC
Jump to comment: Most recent
Comments
Comment #3
andypostComment #4
andypostI found only one tool to fix it https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/rules/cast_...
Comment #5
jacktonkin commentedThere’s a PHPCS rule in
slevomat/coding-standard:https://github.com/slevomat/coding-standard/blob/master/doc/php.md#slevo...
Comment #7
andypostThank you @jacktonkin it can catch!
Comment #9
borisson_Including this as a coding standards rule makes sense, and to me it doesn't need to run through the Coding Standards Committee, because it's a language-level decision and there's nothing we can change or document about it.
Since this passes the new rule, we can be sure we caught all the changes.
Comment #11
alexpottCommitted fc1872a and pushed to 11.x. Thanks!
Backported to 11.2.x,10.6.x,10.5.x without the PHPCS rule
Committed 71976f3 and pushed to 11.2.x. Thanks!
Committed e35092a and pushed to 10.6.x. Thanks!
Committed 2d8538d and pushed to 10.5.x. Thanks!