-
Notifications
You must be signed in to change notification settings - Fork 28
ErrorException : Function ReflectionType::__toString() is deprecated #15
Comments
Hey, did you happen to investigate which PHP version |
|
Thank you for letting me know. Does any of you have the time for a PR & testing it out if it works the same, properly? Sorry for not being able to do it myself, but I don't have a web development environment right now :) |
So, it seems that from the beginning this package was not supported < Laravel version 5.5? xD |
Hmm, if I remember right I wrote and used this package with Laravel 5.4. |
Perhaps your Laravel 5.4 is running on PHP 7? Because I'm running Laravel 5.4 with PHP 5.6 get an error. PHP Fatal error: Call to undefined method ReflectionFunction::getReturnType() in /var/www/5.4/vendor/tutorigo/laravel-ide-macros/src/Console/MacrosCommand.php on line 110
In MacrosCommand.php line 110:
Call to undefined method ReflectionFunction::getReturnType()
ReflectionFunction::getReturnType only support PHP 7 too. xD |
Hmmm alright, thanks for checking it out, then it should be safe to require PHP 7.0 in the next patch version, and integrate a PR for this issue with PHP 7.1 requirement in a new major version. |
#19 should solve it |
Adding getName() after getType() on line 178 of MacrosCommand seems to fix the problem.
$this->write($parameter->getType()->getName() . " ");
The text was updated successfully, but these errors were encountered: