Skip to content

make method signature compatible with PHP 8.5 #60134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Apr 3, 2025

Q A
Branch? 6.4
Bug fix? no
New feature? no
Deprecations? no
Issues
License MIT

see https://3v4l.org/6J3Q9/rfc#vgit.master (PHP 8.5) vs. https://3v4l.org/6J3Q9#v8.4.5 (before)

I did not find the commit in the PHP source code causing this behaviour so I am not sure if it's intended or indicating a bug in PHP.

@carsonbot carsonbot added this to the 6.4 milestone Apr 3, 2025
@stof
Copy link
Member

stof commented Apr 3, 2025

this is probably related to php/php-src#17755, but traits were supposed to be excluded to keep resolving self at runtime (and so based on the class where they are used).

I suggest reporting that as a bug to PHP.

@nicolas-grekas
Copy link
Member

/cc @Girgias FYI (until the issue is open on php-src). Closing as we shouldn't do this change of course.

@xabbuh xabbuh deleted the emoji-transliterator-signature-compat-php-8.5 branch April 4, 2025 09:05
@Girgias
Copy link
Contributor

Girgias commented Apr 6, 2025

Ah, yeah this is a bug. I'll have a look but please do open an issue on php-src as I will forget otherwise.

@xabbuh
Copy link
Member Author

xabbuh commented Apr 10, 2025

see php/php-src#18295

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants