Welcome Guest, Not a member yet? Register   Sign In
source code says Request::getMethod() is deprecated, what to use?
#15

(This post was last modified: 12-07-2023, 04:21 AM by objecttothis.)

(07-19-2021, 05:02 AM)MGatner Wrote: We are working on a framework-wide implementation for handling use of deprecated features. This would definitely be the kind of approach it would take.

I don’t use an IDE so I obviously don’t have this problem - but how much of an issue is it really? I was under the impression you just got a little flag saying “deprecated” or something.

Anyone have references for best practices or other framework handling did deprecating a parameter while leaving the method/function?

Sorry for the necro, but it seems the way to possibly deprecate the parameter is to overload the function without the parameter, then keep the deprecation notice on this one but not on the overloaded function... nevermind, I just realized that overloading in php is ... a-typical. https://www.php.net/manual/en/language.o...oading.php
Reply


Messages In This Thread
RE: source code says Request::getMethod() is deprecated, what to use? - by objecttothis - 12-07-2023, 04:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB