Feature request: ignore deprecations #124
Replies: 6 comments 13 replies
-
Aha, good point. Do you happen to know what dependency is causing this? I'd like to reproduce this with my own global composer setup. Thanks! (It's quite possible that you have another dependency in your global Composer file that forces an outdated version of |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I am still trying to figure that out, but have some more info gathered while taking a look around |
Beta Was this translation helpful? Give feedback.
-
Could you attach the contents of your global
Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Okay, here we go. Don't know if you know about the
It seems like Let's see why we require
Seems like it's down to this package causing you issues. If you remove it (and
Now, you probably don't want to. For me, working around deprecation warnings can be quite difficult so I'd prefer not to (it might also slow down the parsing of the output if we have to use a regex to remove lines of the output). Instead it'd be better if you disable deprecation notices in your |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Upon starting PHPMon, I receive this message
Your Valet version could not be read ('valet --version' failed)
while the output of
valet --version
wasDeprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/giancarlo/.composer/vendor/symfony/console/Helper/HelperSet.php on line 104 Laravel Valet 2.18.9
and the output of
valet on-latest-version
wasDeprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/giancarlo/.composer/vendor/symfony/console/Helper/HelperSet.php on line 104 Yes
That means that there's a non stopping deprecation in one of the components of Valet, that spits out the message. The message doesn't go away even after reinstalling PHP and Valet from scratch. The Symfony team needs to update that and I already raised an issue both on Valet and Symfony repos, but meanwhile the PHPMon app could be updated to simply ignore those deprecation messages, as they aren't actually errors, just warnings. Another alternative could be to add this case to the documentation, as this may be something confusing to someone, may happen again in the future, and may induce to think that the problem relies on phpmon itself.
Beta Was this translation helpful? Give feedback.
All reactions