Skip to content

Add PHP 8.6 deprecated function alias renames to php86 set - #8905

Merged
TomasVotruba merged 1 commit into
mainfrom
php86-deprecated-function-aliases
Oct 31, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
php86-deprecated-function-aliases

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Adds drop-in function alias renames deprecated in PHP 8.6 to the php86 set, via RenameFunctionRector:

  • is_integer() -> is_int()
  • is_long() -> is_int()
  • is_double() -> is_float()
  • doubleval() -> floatval()
  • _() -> gettext()

These are true aliases with identical signatures and return types, so the rename is safe.

Excluded on purpose (not drop-in, left for dedicated handling):

  • spl_object_hash() -> spl_object_id() - return type changes string to int
  • mysqli_stmt_init() -> mysqli_prepare() - different signature
  • mysqli_get_charset() - only a soft hint, different return type
  • strcoll(), metaphone(), spl_classes() - replacements are methods/Reflection, not function renames

@TomasVotruba
TomasVotruba merged commit e2774b6 into main Oct 31, 2026
51 checks passed
@TomasVotruba
TomasVotruba deleted the php86-deprecated-function-aliases branch October 31, 2026 21:44
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