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

Its not a huge issue.
Its just triggers the user to chose an alternative function.
The issue is that the error message isn't always clear. 

PhpStorm shows a strikethrough with the notice: Method 'getMethod' is deprecated.
Visual Code has a line under it, with notice: 'getMethod' is depricated.
https://imgur.com/a/4PHcoKk

It's possible to remove all deprecated notices with some settings:
(in Visual Code)
Code:
{
  "editor.showDeprecated": false,
  // "editor.suggest.showDeprecated": false,
  "intelephense.diagnostics.deprecated": false,
}
But that would remove every deprecated notice.


Only found this:
https://stackoverflow.com/questions/2700...ers-in-php
Reply


Messages In This Thread
RE: source code says Request::getMethod() is deprecated, what to use? - by CCAldo - 07-19-2021, 07:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB