mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
Minor fixes
This commit is contained in:
parent
a6acf9c23b
commit
3bd2577650
@ -1123,8 +1123,6 @@ class Config
|
||||
}
|
||||
|
||||
/**
|
||||
* @param SimpleXMLElement<SimpleXMLElement> $extensions
|
||||
*
|
||||
* @throws ConfigException if a Config file could not be found
|
||||
*
|
||||
* @return void
|
||||
|
@ -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(
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user