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
Don't support changes in strip_tags from php 7.4 #4317
Comments
I found these snippets: https://psalm.dev/r/6dca71d4dc<?php
echo strip_tags('<h1>header</h1>', ['<h1>']);
|
@weirdan strip_tags is present in CoreGenericsFunctions.phpstub . Is there a way to tell psalm the second parameter is an array only from PHP 7.4 in there? Maybe the CallMap_74_Delta is enough? It's still blury for me how Psalm behaves when a function has more than one description |
That's a very good question. I don't know. |
If this is CoreGenericFunctions, does adding it to a versioned stub override this file or is this file assumed to be latest? |
I'm not really sure, we may need to test that |
Hi, I'm still having this false-positive.
PHP 8.0.28 There's something I can do to fix this ? Thanks. |
Versioned stubs do indeed override things in |
From php 7.4 as second argument is possible to use array- psalm see that as error.
https://psalm.dev/r/6dca71d4dc
The text was updated successfully, but these errors were encountered: