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

PHP 8.1 deprecated calls not reported #7550

Closed
kkmuffme opened this issue Feb 1, 2022 · 1 comment · Fixed by #10824
Closed

PHP 8.1 deprecated calls not reported #7550

kkmuffme opened this issue Feb 1, 2022 · 1 comment · Fixed by #10824
Milestone

Comments

@kkmuffme
Copy link
Contributor

kkmuffme commented Feb 1, 2022

https://psalm.dev/r/24131c8655

key, current, next, prev, reset on objects is deprecated as of 8.1

Similar issues:

  • mb_check_encoding without arguments
  • get_class, get_parent_class and get_called_class without arguments
  • IntlCalendar::roll() with bool passed as $value
  • ctype_ functions called with non-string argument
@psalm-github-bot
Copy link

I found these snippets:

https://psalm.dev/r/24131c8655
<?php

$foo = (object) null;

$bar = current( $foo );
Psalm output (using commit 2e01e9b):

INFO: MixedAssignment - 5:1 - Unable to determine the type that $bar is being assigned to

INFO: UnusedVariable - 5:1 - $bar is never referenced or the value is not used

@orklah orklah added this to the PHP 8.1 milestone Feb 1, 2022
@kkmuffme kkmuffme closed this as completed Sep 9, 2022
@kkmuffme kkmuffme reopened this Mar 2, 2024
kkmuffme added a commit to kkmuffme/psalm that referenced this issue Mar 13, 2024
kkmuffme added a commit to kkmuffme/psalm that referenced this issue Mar 13, 2024
kkmuffme added a commit to kkmuffme/psalm that referenced this issue Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants