Skip to content
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

"ReflectionType::__toString() is deprecated" error under PHP 7.4.1 #177

Open
MichaelBrenden opened this issue Dec 27, 2019 · 1 comment
Open

Comments

@MichaelBrenden
Copy link

MichaelBrenden commented Dec 27, 2019

Error on line 233 in Dice.php (tag 4.0.1)

Per
php/php-src@b964298

Fix: change "__toString" in line 233 to "getName"

In Dice branch tagged 4.0.1, it's line 233
In Dice master branch it's line 245

@Quix0r
Copy link

Quix0r commented Mar 11, 2020

Isn't the proper class ReflectionNamedType?

Please compare:
https://www.php.net/manual/en/class.reflectiontype.php
https://www.php.net/manual/en/class.reflectionnamedtype.php

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

No branches or pull requests

2 participants