Skip to content

Remove NullToStrictStringIntConverter, use explicit null type in null-to-strict rules - #8837

Merged
TomasVotruba merged 2 commits into
mainfrom
tv-remove-null-to-strict-int-converter
Oct 25, 2026
Merged

TomasVotruba merged 2 commits into
mainfrom
tv-remove-null-to-strict-int-converter

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Simplifies the null-to-strict rules to only act on an explicit null argument type, dropping the shared NullToStrictStringIntConverter node manipulator and its (string)/(int) casting of maybe-null/mixed/ternary values.

Affected rules:

  • ArrayKeyExistsNullToEmptyStringRector - null key -> ''
  • NullToStrictStringFuncCallArgRector - null arg -> ''
  • NullToStrictIntPregSlitFuncCallLimitArgRector - null limit -> 0

The NullToStrictStringIntConverter manipulator is removed; its cast-based cases are now left untouched and covered by skip_* fixtures.

@TomasVotruba
TomasVotruba merged commit 0b01e64 into main Oct 25, 2026
48 of 49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-remove-null-to-strict-int-converter branch October 25, 2026 22:47
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