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 #57

Open
alystair opened this issue Feb 24, 2020 · 3 comments
Open

ReflectionType::__toString() is deprecated #57

alystair opened this issue Feb 24, 2020 · 3 comments

Comments

@alystair
Copy link

Deprecated: Function ReflectionType::__toString() is deprecated in \vendor\digitalnature\php-ref\ref.phpon line 2060

@CodeBrauer
Copy link

This deprecated message occurs on PHP7.4+

@ahmaddzidan
Copy link

Change file ref.php on line 2019:
$type = $parameter->getType(); to $type = $parameter->getName();
And line 2057
$type = $method->getReturnType(); to $type = $method->getName();

Solved on PHP 7.4.19

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

4 participants
@alystair @CodeBrauer @ahmaddzidan and others