Skip to content

[deprecation] Deprecate RemoveUselessIsObjectCheckRector as niche rule, not part of PHP upgrade path - #8614

Merged
TomasVotruba merged 1 commit into
mainfrom
deprecate-remove-useless-is-object-check
Oct 10, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
deprecate-remove-useless-is-object-check

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Deprecates RemoveUselessIsObjectCheckRector.

The rule removes a useless is_object() check combined with an instanceof check (is_object($obj) && $obj instanceof DateTime -> $obj instanceof DateTime). This is a niche case, not part of the PHP upgrade path.

  • marks the rule with DeprecatedInterface + @deprecated, body throws
  • removes it from CodeQualityLevel
  • removes its test directory

@TomasVotruba TomasVotruba changed the title [CodeQuality] Deprecate RemoveUselessIsObjectCheckRector as niche rule, not part of PHP upgrade path [deprecation] Deprecate RemoveUselessIsObjectCheckRector as niche rule, not part of PHP upgrade path Oct 10, 2026
@TomasVotruba
TomasVotruba merged commit f772b20 into main Oct 10, 2026
49 checks passed
@TomasVotruba
TomasVotruba deleted the deprecate-remove-useless-is-object-check branch October 10, 2026 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant