1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

Minor fixes

This commit is contained in:
Brown 2020-09-07 17:22:26 -04:00 committed by Daniil Gentili
parent a6acf9c23b
commit 3bd2577650
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
3 changed files with 3 additions and 4 deletions

View File

@ -1123,8 +1123,6 @@ class Config
}
/**
* @param SimpleXMLElement<SimpleXMLElement> $extensions
*
* @throws ConfigException if a Config file could not be found
*
* @return void

View File

@ -121,8 +121,9 @@ class ArgumentAnalyzer
}
if ($function_param->expect_variable
&& $arg_value_type->hasLiteralString()
&& $arg_value_type->isSingleStringLiteral()
&& !$arg->value instanceof PhpParser\Node\Scalar
&& !$arg->value instanceof PhpParser\Node\Expr\ConstFetch
) {
if (IssueBuffer::accepts(
new InvalidArgument(

View File

@ -667,7 +667,7 @@ function preg_replace_callback($search, $replace, $subject, int $limit = -1, &$c
* ) $matches
* @return int
*/
function preg_match_all($pattern, $replace, &$matches, int $flags = 1) {}
function preg_match_all($pattern, $replace, &$matches = [], int $flags = 1) {}
/**
* @psalm-pure