New issue
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
XMLReader::$nodeType missing properties #8629
Comments
Same issue here after upgrading to PHP 8.2. |
This should be fixed in jetbrains/phpstorm-stubs. For some reason these properties are there only as But in reality they're real properties: https://github.com/php/php-src/blob/master/ext/xmlreader/php_xmlreader.stub.php |
They all run under Php7.4 in Github. 7.4 is EOL. We still have to run unit tests in 7.4, but I think it's time to move the tools. Note that we cannot currently run Phpstan in 8.2 because of phpstan/phpstan#8629.
* WIP Run phpcs, php-cs-fixer, phpstan, coverage, versions as Php8.1 They all run under Php7.4 in Github. 7.4 is EOL. We still have to run unit tests in 7.4, but I think it's time to move the tools. Note that we cannot currently run Phpstan in 8.2 because of phpstan/phpstan#8629. * Update main.yml Try running coverage as 8.0 rather than 8.1. * Update main.yml Revert Coverage to Php 7.4. * Composer Cache Directory Command set-output is deprecated. Upgrading to using Environment files as suggested by Github messages. * Coverage and Php8 Try to follow advice in scrutinizer-ci/ocular#54 * Keep Trying See https://github.com/phpowermove/docblock/pull/12/files
Hello everyone, I wanted to mention that this error is not triggered only on nodeType, but also with other XMLReader properties, here is what I get:
The above are all valid properties as per: Thank you. |
Facing the same issue here. Note: Using configuration file /var/www/xxxx/phpstan.neon. Line XXXX/XXXX/XXXX/Price.php 33 No error to ignore is reported on line 33. After an hour, trying to find solution, i decided to add file in excludePaths in phpstan.neon |
as a workaround - that works on ci for both php 8.0 and 8.2 - i used
as |
Fixed: phpstan/phpstan-src@2d364d7 |
As the issue is fixed: phpstan/phpstan#8629
As the issue is fixed: phpstan/phpstan#8629
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug report
the same applies for at least
localName
as seen here this will produces an error with phpstan and php8.2 but not with previous versions.
the phpstorm stub contains the property:
Code snippet that reproduces the problem
https://phpstan.org/r/7b94ed04-7dfb-4add-a191-79ff6d64f940
Expected output
Did PHPStan help you today? Did it make you happy in any way?
yeah, always makes me happy :)
The text was updated successfully, but these errors were encountered: