1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
This commit is contained in:
Daniil Gentili 2023-10-22 20:17:39 +02:00
parent 292ed06323
commit 8fadd1be85
3 changed files with 16 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="dev-master@973a3fa554b4a2016e2a551dce2206fb47084050">
<files psalm-version="dev-master@292ed063233e29d59d0bde61bb6daedee94d55bb">
<file src="examples/TemplateChecker.php">
<PossiblyUndefinedIntArrayOffset>
<code><![CDATA[$comment_block->tags['variablesfrom'][0]]]></code>
@ -16,6 +16,9 @@
<PossiblyNullArgument>
<code>$deprecated_element_xml</code>
</PossiblyNullArgument>
<PropertyTypeCoercion>
<code>$this</code>
</PropertyTypeCoercion>
</file>
<file src="src/Psalm/Config/FileFilter.php">
<PossiblyUndefinedIntArrayOffset>
@ -622,6 +625,16 @@
<code>hasLowercaseString</code>
</PossiblyUnusedMethod>
</file>
<file src="tests/TestConfig.php">
<InvalidExtendClass>
<code>Config</code>
</InvalidExtendClass>
<MethodSignatureMismatch>
<code>public function __construct()</code>
<code>public function getComposerFilePathForClassLike(string $fq_classlike_name): bool</code>
<code>public function getProjectDirectories(): array</code>
</MethodSignatureMismatch>
</file>
<file src="vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrowFunction.php">
<PossiblyUndefinedStringArrayOffset>
<code><![CDATA[$subNodes['expr']]]></code>

View File

@ -206,7 +206,7 @@ abstract class ClassLikeAnalyzer extends SourceAnalyzer
?string $calling_method_id,
array $suppressed_issues,
?ClassLikeNameOptions $options = null,
bool $check_classes = true
bool $check_classes = true,
): ?bool {
if ($options === null) {
$options = new ClassLikeNameOptions();

View File

@ -962,7 +962,7 @@ final class TypeParser
$get_int_range_bound = static function (
ParseTree $parse_tree,
Union $generic_param,
string $bound_name
string $bound_name,
): ?int {
if (!$parse_tree instanceof Value
|| count($generic_param->getAtomicTypes()) > 1