Skip to content

Issue-1989 apply rector rules for 8.5#2001

Open
kayjoosten wants to merge 5 commits into
mainfrom
feature/issue-1989-apply-rector-rules
Open

Issue-1989 apply rector rules for 8.5#2001
kayjoosten wants to merge 5 commits into
mainfrom
feature/issue-1989-apply-rector-rules

Conversation

@kayjoosten
Copy link
Copy Markdown
Contributor

No description provided.

Applied all rector rules safe for the codebase:
- AddTypeToConstRector: typed class constants throughout
- AddOverrideAttributeToOverriddenMethodsRector / Properties: #[Override]
- ArrayKeyExistsNullToEmptyStringRector: cast keys to string
- PushRequestToRequestStackConstructorRector: updated test setup
- ArrayFirstLastRector, ForeachToArrayAnyRector: PHP 8.5 builtins
- FunctionFirstClassCallableRector / ArrowFunctionDelegatingCallToFirstClassCallableRector
- RemoveFuncCallRector: removed deprecated xml_parser_free()
- SleepToSerializeRector: converted __sleep/__wakeup to __serialize/__unserialize,
  with manual fixes to preserve XML reconstruction logic in four decorators

Added to rector.php skip list:
- NewMethodCallWithoutParenthesesRector: PHP 8.4 syntax unsupported by PHPMD/pdepend
- DeprecatedAnnotationToDeprecatedAttributeRector: #[Deprecated] emits runtime
  E_DEPRECATED notices causing PHPUnit risky failures (failOnRisky=true)
…catedAttributeRector skipped

The #[Deprecated] PHP 8.5 attribute emits E_DEPRECATED at runtime, causing
PHPUnit risky failures (failOnRisky=true). Rule added to rector.php skip list;
affected files restored to their state on main.
Library files have no namespace declaration so \Override is equivalent
to Override; use the unqualified form for consistency with src/ files.
@kayjoosten kayjoosten linked an issue May 15, 2026 that may be closed by this pull request
@kayjoosten kayjoosten changed the title Feature/issue 1989 apply rector rules Issue-1989 apply rector rules for 8.5 May 15, 2026
- Remove unnecessary intermediate variable in Bindings::hasEncryptedAssertion
- Add __unserialize() to X509CertificateLazyProxy to match __serialize()
- Type public const USED_DISCOVERY_HASH_PARAM as string in DiscoverySelectionService
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apply or ignore rector rules after PHP 8.5 update

1 participant