PHPStorm automatically completes @ return array for the method | Why is mixed, mixed??

"case": PHPStorm is the method of return $_ GET , which automatically completes the document tag of @ return array | mixed .
"problem": why mixed ? $_ GET is not an array?

is this the Bug, of IDE or the new $_ GET feature of the ship that I never knew about?

Mar.18,2021

for phpstorm, $_ GET is just an ordinary variable, and you should have array operations related to $_ GET in the function, so phpstorm determines that your $_ GET is an array, but is not sure whether there are other forms, so mixed will be added later. Phpstorm will give you a mixed for any data type that cannot be determined.

  • Php URL $_ GET add up?

    want to check I want the network address get to add up for example, the existing network address is region=abc&status=1 when I may enter another web address I want him to add & xxx=1 but will not wash out the previous GET parameters region=ab...

    Mar.04,2021
Menu