1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Minor fixes

This commit is contained in:
Brown 2020-09-07 17:22:26 -04:00
parent a83c0fe21a
commit fe4af8ff1a
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