Skip to content
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

deprecated constants not reported #129

Open
staabm opened this issue Dec 21, 2024 · 0 comments
Open

deprecated constants not reported #129

staabm opened this issue Dec 21, 2024 · 0 comments

Comments

@staabm
Copy link
Contributor

staabm commented Dec 21, 2024

Bug report

DateTimeInterface::ISO8601 in phpstorm stubs don't declare a version, but just that it is deprecated

https://github.com/JetBrains/phpstorm-stubs/blob/b61d4a5f40c3940be440d85355fef4e2416b8527/date/date_c.php#L25-L31

we don't report deprecation errors for it atm


NumberFormatter::TYPE_CURRENCY seems to have a different problem

https://github.com/JetBrains/phpstorm-stubs/blob/b61d4a5f40c3940be440d85355fef4e2416b8527/intl/intl.php#L914-L919

Code snippet that reproduces the problem

https://phpstan.org/r/3726339f-dc33-4d13-8bc8-527ccfcee63b

Expected output

2 errors regarding use of a deprecated constant

Did PHPStan help you today? Did it make you happy in any way?

No response

@ondrejmirtes ondrejmirtes transferred this issue from phpstan/phpstan Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant