We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
string
array
According to the PHP documentation, $_SERVER["argv"] is an array, but for the Intelephense's LSP, it is typed as a string.
$_SERVER["argv"]
If you try this following code:
<?php $argv = $_SERVER["argv"]; $cnt = count($argv);
The LSP will tell you:
Expected type 'Countable|array'. Found 'string'
Which is a false positive.
The text was updated successfully, but these errors were encountered:
int
I noticed this issue also. Probably happened around this time
## [1.11.0 - 2024-06-29] **Pre-Release** - `$argv` is now type `string[]`.
Sorry, something went wrong.
No branches or pull requests
According to the PHP documentation,
$_SERVER["argv"]
is an array, but for the Intelephense's LSP, it is typed as astring
.If you try this following code:
The LSP will tell you:
Which is a false positive.
The text was updated successfully, but these errors were encountered: