mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Merge pull request #10122 from weirdan/strip_tags-allowed_tags-as-list
This commit is contained in:
commit
28f5b1eb54
@ -2258,6 +2258,10 @@ class Config
|
||||
$stubsDir . 'SPL.phpstub',
|
||||
];
|
||||
|
||||
if ($codebase->analysis_php_version_id >= 7_04_00) {
|
||||
$this->internal_stubs[] = $stubsDir . 'Php74.phpstub';
|
||||
}
|
||||
|
||||
if ($codebase->analysis_php_version_id >= 8_00_00) {
|
||||
$this->internal_stubs[] = $stubsDir . 'CoreGenericAttributes.phpstub';
|
||||
$this->internal_stubs[] = $stubsDir . 'Php80.phpstub';
|
||||
|
11
stubs/Php74.phpstub
Normal file
11
stubs/Php74.phpstub
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @psalm-pure
|
||||
*
|
||||
* @psalm-taint-escape html
|
||||
* @psalm-flow ($string) -> return
|
||||
*
|
||||
* @param null|string|array<array-key,string> $allowed_tags
|
||||
*/
|
||||
function strip_tags(string $string, null|string|array $allowed_tags = null) : string {}
|
Loading…
Reference in New Issue
Block a user