1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
psalm/psalm-baseline.xml

717 lines
27 KiB
XML
Raw Permalink Normal View History

2021-03-23 06:30:51 +01:00
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="dev-master@1ee0f1bcb81fa87d8b33a74ede37a6b1d8317294">
2021-03-23 06:30:51 +01:00
<file src="examples/TemplateChecker.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$comment_block->tags['variablesfrom'][0]]]></code>
2021-03-23 06:30:51 +01:00
<code>$matches[1]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="examples/TemplateScanner.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$comment_block->tags['variablesfrom'][0]]]></code>
2021-03-23 06:30:51 +01:00
<code>$matches[1]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Codebase.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$const_name</code>
<code>$const_name</code>
2021-03-23 06:30:51 +01:00
<code>$matches[0]</code>
<code>$property_name</code>
<code>$symbol_name</code>
2021-03-23 06:30:51 +01:00
<code>$symbol_parts[1]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Config/FileFilter.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[explode('::', $method_id)[1]]]></code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/ErrorBaseline.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$matches[1]</code>
<code>$matches[2]</code>
<code>$matches[3]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/ClassAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$comments[0]</code>
<code>$property_name</code>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$stmt->props[0]]]></code>
2021-03-23 06:30:51 +01:00
<code>$uninitialized_variables[0]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/ClassLikeAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$property_name</code>
</PossiblyUndefinedIntArrayOffset>
</file>
2021-03-23 06:30:51 +01:00
<file src="src/Psalm/Internal/Analyzer/ProjectAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$destination_parts[1]</code>
<code>$destination_parts[1]</code>
<code>$destination_parts[1]</code>
<code>$php_minor_version</code>
2021-03-23 06:30:51 +01:00
<code>$source_parts[1]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
2022-12-18 15:00:15 +01:00
<file src="src/Psalm/Internal/Analyzer/Statements/Block/ForAnalyzer.php">
2022-12-21 04:59:35 +01:00
<ArgumentTypeCoercion>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$stmt->cond]]></code>
2022-12-18 15:00:15 +01:00
</ArgumentTypeCoercion>
</file>
2021-03-23 06:30:51 +01:00
<file src="src/Psalm/Internal/Analyzer/Statements/Block/ForeachAnalyzer.php">
2022-12-21 04:59:35 +01:00
<ConflictingReferenceConstraint>
<code>if (AtomicTypeComparator::isContainedBy(</code>
<code>if (AtomicTypeComparator::isContainedBy(</code>
</ConflictingReferenceConstraint>
2021-03-23 06:30:51 +01:00
</file>
<file src="src/Psalm/Internal/Analyzer/Statements/Block/SwitchAnalyzer.php">
2022-12-21 04:59:35 +01:00
<InvalidPropertyAssignmentValue>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$context->assigned_var_ids += $switch_scope->new_assigned_var_ids]]></code>
</InvalidPropertyAssignmentValue>
</file>
2021-03-23 06:30:51 +01:00
<file src="src/Psalm/Internal/Analyzer/Statements/Block/SwitchCaseAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$new_case_equality_expr->getArgs()[1]]]></code>
<code><![CDATA[$switch_scope->leftover_statements[0]]]></code>
<code><![CDATA[$traverser->traverse([$switch_condition])[0]]]></code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/AssertionFinder.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$assertion->rule[0]]]></code>
<code><![CDATA[$assertion->rule[0]]]></code>
<code><![CDATA[$assertion->rule[0]]]></code>
<code><![CDATA[$assertion->rule[0]]]></code>
<code><![CDATA[$assertion->rule[0]]]></code>
<code><![CDATA[$assertion->rule[0]]]></code>
<code><![CDATA[$assertion->rule[0]]]></code>
<code><![CDATA[$count_expr->getArgs()[0]]]></code>
<code><![CDATA[$count_expr->getArgs()[0]]]></code>
<code><![CDATA[$count_expr->getArgs()[0]]]></code>
<code><![CDATA[$count_expr->getArgs()[0]]]></code>
<code><![CDATA[$count_expr->getArgs()[0]]]></code>
<code><![CDATA[$counted_expr->getArgs()[0]]]></code>
<code><![CDATA[$expr->getArgs()[0]]]></code>
<code><![CDATA[$expr->getArgs()[0]]]></code>
<code><![CDATA[$expr->getArgs()[0]]]></code>
<code><![CDATA[$expr->getArgs()[0]]]></code>
<code><![CDATA[$expr->getArgs()[0]]]></code>
<code><![CDATA[$expr->getArgs()[0]]]></code>
<code><![CDATA[$expr->getArgs()[0]]]></code>
<code><![CDATA[$expr->getArgs()[0]]]></code>
<code><![CDATA[$expr->getArgs()[1]]]></code>
<code><![CDATA[$expr->getArgs()[1]]]></code>
<code><![CDATA[$get_debug_type_expr->getArgs()[0]]]></code>
<code><![CDATA[$get_debug_type_expr->getArgs()[0]]]></code>
<code><![CDATA[$getclass_expr->getArgs()[0]]]></code>
<code><![CDATA[$gettype_expr->getArgs()[0]]]></code>
<code><![CDATA[$gettype_expr->getArgs()[0]]]></code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/StaticPropertyAssignmentAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$new_property_name</code>
</PossiblyUndefinedIntArrayOffset>
</file>
2021-09-06 23:44:22 +02:00
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$invalid_left_messages[0]</code>
<code>$invalid_right_messages[0]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php">
2022-12-21 04:59:35 +01:00
<ComplexMethod>
2022-10-03 10:45:36 +02:00
<code>verifyType</code>
</ComplexMethod>
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$method_name</code>
2021-03-23 06:30:51 +01:00
<code>$parts[1]</code>
2023-01-25 16:54:33 +01:00
<code><![CDATA[explode('::', $cased_method_id)[1]]]></code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArrayFunctionArgumentsAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$args[0]</code>
<code>$args[0]</code>
<code>$args[1]</code>
<code>$callmap_callables[0]</code>
<code>$method_name</code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$stmt->getArgs()[0]]]></code>
</PossiblyUndefinedArrayOffset>
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$parts[1]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallReturnTypeFetcher.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$method</code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/MethodCallAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$result->invalid_method_call_types[0]]]></code>
<code><![CDATA[$result->non_existent_class_method_ids[0]]]></code>
<code><![CDATA[$result->non_existent_class_method_ids[0]]]></code>
<code><![CDATA[$result->non_existent_interface_method_ids[0]]]></code>
<code><![CDATA[$result->non_existent_interface_method_ids[0]]]></code>
<code><![CDATA[$result->non_existent_magic_method_ids[0]]]></code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/StaticMethod/ExistingAtomicStaticCallAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$new_method_name</code>
</PossiblyUndefinedIntArrayOffset>
</file>
2021-03-23 06:30:51 +01:00
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/CallAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$callable_arg->items[0]]]></code>
<code><![CDATA[$callable_arg->items[1]]]></code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/ClassConstAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$new_const_name</code>
<code>$new_const_name</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/ArrayFetchAnalyzer.php">
2022-12-21 04:59:35 +01:00
<ReferenceConstraintViolation>
<code>$stmt_type</code>
<code>$stmt_type</code>
<code>$stmt_type</code>
</ReferenceConstraintViolation>
</file>
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/AtomicPropertyFetchAnalyzer.php">
2022-12-21 04:59:35 +01:00
<ReferenceConstraintViolation>
<code>$stmt_type</code>
</ReferenceConstraintViolation>
</file>
2021-03-23 06:30:51 +01:00
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/InstancePropertyFetchAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$invalid_fetch_types[0]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/StaticPropertyFetchAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$new_property_name</code>
</PossiblyUndefinedIntArrayOffset>
</file>
2021-03-23 06:30:51 +01:00
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/YieldAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$atomic_return_type->type_params[2]]]></code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/Statements/ReturnAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$method_name</code>
</PossiblyUndefinedIntArrayOffset>
</file>
2021-03-23 06:30:51 +01:00
<file src="src/Psalm/Internal/Analyzer/Statements/UnusedAssignmentRemover.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$token_list[$iter]</code>
<code>$token_list[$iter]</code>
<code>$token_list[$iter]</code>
2021-03-23 06:30:51 +01:00
<code>$token_list[$iter]</code>
<code>$token_list[0]</code>
<code>$token_list[1]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/StatementsAnalyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$stmt->expr->getArgs()[0]]]></code>
</PossiblyUndefinedArrayOffset>
</file>
2022-12-19 18:31:43 +01:00
<file src="src/Psalm/Internal/Cli/LanguageServer.php">
2022-12-21 04:59:35 +01:00
<PossiblyInvalidArgument>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$options['tcp'] ?? null]]></code>
2022-12-19 18:31:43 +01:00
</PossiblyInvalidArgument>
</file>
<file src="src/Psalm/Internal/Cli/Refactor.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$identifier_name</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/CliUtils.php">
<InvalidArrayOffset>
<code>$input_path[2]</code>
<code>$input_path[2]</code>
</InvalidArrayOffset>
</file>
<file src="src/Psalm/Internal/Codebase/Analyzer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$trait</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Codebase/ClassLikes.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$destination_name</code>
<code>$destination_name</code>
<code>$destination_name</code>
<code>$source_const_name</code>
<code>$stub</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Codebase/Functions.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$stub</code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Codebase/InternalCallMapHandler.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$callables[0]</code>
<code>$callables[0]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Codebase/Methods.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$function_callables[0]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Codebase/Properties.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$property_name</code>
<code>$property_name</code>
<code>$property_name</code>
<code>$property_name</code>
<code>$property_name</code>
<code>$property_name</code>
</PossiblyUndefinedIntArrayOffset>
</file>
2021-03-23 06:30:51 +01:00
<file src="src/Psalm/Internal/Diff/ClassStatementsDiffer.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$a->props[0]]]></code>
<code><![CDATA[$a->stmts[0]]]></code>
2021-03-23 06:30:51 +01:00
<code>$a_stmt_comments[0]</code>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$b->props[0]]]></code>
<code><![CDATA[$b->stmts[0]]]></code>
2021-03-23 06:30:51 +01:00
<code>$b_stmt_comments[0]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Diff/FileDiffer.php">
2022-12-21 04:59:35 +01:00
<InvalidArrayOffset>
<code>$b[$y]</code>
</InvalidArrayOffset>
</file>
<file src="src/Psalm/Internal/ExecutionEnvironment/GitInfoCollector.php">
<PossiblyUndefinedArrayOffset>
<code>$exploded[1]</code>
<code>$url</code>
</PossiblyUndefinedArrayOffset>
</file>
2021-03-23 06:30:51 +01:00
<file src="src/Psalm/Internal/FileManipulation/PropertyDocblockManipulator.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$stmt->props[0]]]></code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
2022-01-07 15:58:02 +01:00
<file src="src/Psalm/Internal/LanguageServer/LanguageClient.php">
2022-12-21 04:59:35 +01:00
<DocblockTypeContradiction>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$type < 1]]></code>
<code><![CDATA[$type < 1 || $type > 4]]></code>
<code><![CDATA[$type > 4]]></code>
2022-01-07 15:58:02 +01:00
</DocblockTypeContradiction>
</file>
2022-12-22 15:43:55 +01:00
<file src="src/Psalm/Internal/LanguageServer/LanguageServer.php">
<PossiblyUnusedParam>
<code>$capabilities</code>
<code>$processId</code>
<code>$rootPath</code>
</PossiblyUnusedParam>
</file>
2021-03-23 06:30:51 +01:00
<file src="src/Psalm/Internal/LanguageServer/Message.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$pair[1]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/LanguageServer/ProtocolStreamReader.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$parts[1]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/LanguageServer/Server/TextDocument.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$contentChanges[0]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/MethodIdentifier.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$method_id_parts[1]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/PhpVisitor/PartialParserVisitor.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$cs[0]</code>
<code>$match[0]</code>
<code>$match[1]</code>
<code>$match[2]</code>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$node->stmts[0]]]></code>
2021-03-23 06:30:51 +01:00
<code>$replacement_stmts[0]</code>
<code>$replacement_stmts[0]</code>
<code>$replacement_stmts[0]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/PhpVisitor/Reflector/ClassLikeDocblockParser.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$doc_line_parts[1]</code>
<code>$matches[0]</code>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$method_tree->children[0]]]></code>
<code><![CDATA[$method_tree->children[1]]]></code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/PhpVisitor/Reflector/ClassLikeNodeScanner.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$l[4]</code>
<code>$r[4]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/PhpVisitor/Reflector/ExpressionScanner.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$node->getArgs()[0]]]></code>
<code><![CDATA[$node->getArgs()[1]]]></code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$since_parts[1]</code>
</PossiblyUndefinedIntArrayOffset>
2022-12-21 04:59:35 +01:00
<RedundantCondition>
2023-01-25 16:54:33 +01:00
<code><![CDATA[count($line_parts) > 0]]></code>
2021-03-23 06:30:51 +01:00
</RedundantCondition>
</file>
<file src="src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockScanner.php">
2022-12-21 04:59:35 +01:00
<PossiblyInvalidArrayOffset>
<code>$fixed_type_tokens[$i - 1]</code>
</PossiblyInvalidArrayOffset>
<PossiblyUndefinedArrayOffset>
<code>$source_param_string</code>
</PossiblyUndefinedArrayOffset>
2021-03-23 06:30:51 +01:00
</file>
<file src="src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeNodeScanner.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$stmt->stmts[0]]]></code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/PhpVisitor/SimpleNameResolver.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>$cs[0]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Provider/ReturnTypeProvider/ArrayMapReturnTypeProvider.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$callable_method_name</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Provider/ReturnTypeProvider/ArrayMergeReturnTypeProvider.php">
2022-12-21 04:59:35 +01:00
<InvalidArgument>
<code>$class_strings ?: null</code>
</InvalidArgument>
</file>
<file src="src/Psalm/Internal/Provider/ReturnTypeProvider/ArrayReduceReturnTypeProvider.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$method_name</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Type/Comparator/AtomicTypeComparator.php">
2022-12-21 04:59:35 +01:00
<ComplexMethod>
<code>isContainedBy</code>
</ComplexMethod>
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$array->properties[0]]]></code>
<code><![CDATA[$array->properties[0]]]></code>
</PossiblyUndefinedIntArrayOffset>
</file>
2022-10-03 10:45:36 +02:00
<file src="src/Psalm/Internal/Type/Comparator/CallableTypeComparator.php">
2022-12-21 04:59:35 +01:00
<LessSpecificReturnStatement>
2022-10-03 10:45:36 +02:00
<code>$callable</code>
</LessSpecificReturnStatement>
2022-12-21 04:59:35 +01:00
<MoreSpecificReturnType>
2022-10-03 10:45:36 +02:00
<code>TCallable|TClosure|null</code>
</MoreSpecificReturnType>
</file>
<file src="src/Psalm/Internal/Type/SimpleAssertionReconciler.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$array_atomic_type->properties[0]]]></code>
<code>$properties[0]</code>
<code>$properties[0]</code>
<code>$properties[0]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
2022-10-10 12:53:13 +02:00
<file src="src/Psalm/Internal/Type/TemplateStandinTypeReplacer.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
2022-10-10 12:53:13 +02:00
<code>getClassTemplateTypes</code>
2022-10-17 13:10:12 +02:00
<code>has</code>
2022-10-10 12:53:13 +02:00
</ImpureMethodCall>
</file>
2021-03-23 06:30:51 +01:00
<file src="src/Psalm/Internal/Type/TypeCombiner.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$combination->array_type_params[1]]]></code>
<code><![CDATA[$combination->array_type_params[1]]]></code>
<code><![CDATA[$combination->array_type_params[1]]]></code>
<code><![CDATA[$combination->array_type_params[1]]]></code>
<code><![CDATA[$combination->array_type_params[1]]]></code>
<code><![CDATA[$combination->array_type_params[1]]]></code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Type/TypeExpander.php">
2022-12-21 04:59:35 +01:00
<InvalidArgument>
<code>$fallback_params</code>
</InvalidArgument>
</file>
2021-03-23 06:30:51 +01:00
<file src="src/Psalm/Internal/Type/TypeParser.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$const_name</code>
<code>$const_name</code>
2021-03-23 06:30:51 +01:00
<code>$intersection_types[0]</code>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$parse_tree->children[0]]]></code>
<code><![CDATA[$parse_tree->condition->children[0]]]></code>
2021-03-23 06:30:51 +01:00
<code>array_keys($offset_template_data)[0]</code>
<code>array_keys($template_type_map[$array_param_name])[0]</code>
<code>array_keys($template_type_map[$class_name])[0]</code>
<code>array_keys($template_type_map[$fq_classlike_name])[0]</code>
<code>array_keys($template_type_map[$template_param_name])[0]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Type/TypeTokenizer.php">
2022-12-21 04:59:35 +01:00
<PossiblyInvalidArrayOffset>
<code>$type_tokens[$i - 1]</code>
<code>$type_tokens[$i - 1]</code>
<code>$type_tokens[$i - 1]</code>
<code>$type_tokens[$i - 1]</code>
</PossiblyInvalidArrayOffset>
</file>
<file src="src/Psalm/Plugin/Shepherd.php">
<DeprecatedProperty>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$codebase->config->shepherd_host]]></code>
</DeprecatedProperty>
</file>
<file src="src/Psalm/Storage/ClassConstantStorage.php">
2022-12-21 04:59:35 +01:00
<MutableDependency>
<code>CustomMetadataTrait</code>
</MutableDependency>
</file>
<file src="src/Psalm/Storage/FunctionLikeParameter.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
<code>traverse</code>
<code>traverse</code>
<code>traverse</code>
<code>traverse</code>
</ImpureMethodCall>
</file>
<file src="src/Psalm/Type.php">
2022-12-21 04:59:35 +01:00
<ImpureStaticProperty>
<code>self::$listKey</code>
</ImpureStaticProperty>
</file>
2021-03-23 06:30:51 +01:00
<file src="src/Psalm/Type/Atomic.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
2022-10-10 12:53:13 +02:00
<code>classExtendsOrImplements</code>
<code>classExtendsOrImplements</code>
<code>classExtendsOrImplements</code>
<code>classOrInterfaceExists</code>
<code>classOrInterfaceExists</code>
<code>classOrInterfaceExists</code>
<code>getMappedGenericTypeParams</code>
<code>interfaceExtends</code>
<code>interfaceExtends</code>
<code>interfaceExtends</code>
<code>traverse</code>
<code>traverse</code>
2022-10-10 12:53:13 +02:00
</ImpureMethodCall>
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2021-03-23 06:30:51 +01:00
<code>array_keys($template_type_map[$value])[0]</code>
</PossiblyUndefinedIntArrayOffset>
2022-12-21 04:59:35 +01:00
<ReferenceConstraintViolation>
<code>$value</code>
</ReferenceConstraintViolation>
2021-03-23 06:30:51 +01:00
</file>
2022-10-10 12:53:13 +02:00
<file src="src/Psalm/Type/Atomic/CallableTrait.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
2022-10-10 12:53:13 +02:00
<code>replace</code>
<code>replace</code>
<code>replace</code>
<code>replace</code>
</ImpureMethodCall>
</file>
2021-03-23 06:30:51 +01:00
<file src="src/Psalm/Type/Atomic/GenericTrait.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
2022-10-10 12:53:13 +02:00
<code>getMappedGenericTypeParams</code>
<code>replace</code>
<code>replace</code>
</ImpureMethodCall>
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$this->type_params[1]]]></code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
2022-10-10 12:53:13 +02:00
<file src="src/Psalm/Type/Atomic/HasIntersectionTrait.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
2022-10-10 12:53:13 +02:00
<code>getMostSpecificTypeFromBounds</code>
</ImpureMethodCall>
</file>
<file src="src/Psalm/Type/Atomic/TCallableList.php">
2022-12-21 04:59:35 +01:00
<DeprecatedClass>
<code>TNonEmptyList</code>
</DeprecatedClass>
</file>
2022-10-10 12:53:13 +02:00
<file src="src/Psalm/Type/Atomic/TClassString.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
2022-10-10 12:53:13 +02:00
<code>replace</code>
</ImpureMethodCall>
</file>
<file src="src/Psalm/Type/Atomic/TClassStringMap.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
2022-10-10 12:53:13 +02:00
<code>getString</code>
<code>getString</code>
<code>replace</code>
<code>replace</code>
</ImpureMethodCall>
2022-12-21 04:59:35 +01:00
<ImpurePropertyAssignment>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$cloned->value_param]]></code>
2022-10-10 12:53:13 +02:00
</ImpurePropertyAssignment>
</file>
<file src="src/Psalm/Type/Atomic/TConditional.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
2022-10-10 12:53:13 +02:00
<code>replace</code>
</ImpureMethodCall>
</file>
<file src="src/Psalm/Type/Atomic/TDependentListKey.php">
2022-12-21 04:59:35 +01:00
<PossiblyUnusedMethod>
<code>__construct</code>
</PossiblyUnusedMethod>
</file>
2022-10-10 12:53:13 +02:00
<file src="src/Psalm/Type/Atomic/TKeyedArray.php">
2022-12-21 04:59:35 +01:00
<DeprecatedClass>
<code>TList</code>
2023-01-25 16:54:33 +01:00
<code><![CDATA[new TList($this->getGenericValueType())]]></code>
<code><![CDATA[new TNonEmptyList($this->getGenericValueType())]]></code>
</DeprecatedClass>
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
2022-10-10 12:53:13 +02:00
<code>combine</code>
<code>combine</code>
<code>combineUnionTypes</code>
<code>combineUnionTypes</code>
<code>combineUnionTypes</code>
<code>combineUnionTypes</code>
<code>combineUnionTypes</code>
<code>combineUnionTypes</code>
<code>combineUnionTypes</code>
<code>replace</code>
<code>replace</code>
2022-10-10 12:53:13 +02:00
<code>replace</code>
<code>replace</code>
</ImpureMethodCall>
2022-12-21 04:59:35 +01:00
<ImpurePropertyAssignment>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$key_type->possibly_undefined]]></code>
2022-10-10 12:53:13 +02:00
</ImpurePropertyAssignment>
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$this->properties[0]]]></code>
<code><![CDATA[$this->properties[0]]]></code>
<code><![CDATA[$this->properties[0]]]></code>
</PossiblyUndefinedIntArrayOffset>
2022-12-21 04:59:35 +01:00
<PossiblyUnusedMethod>
<code>getList</code>
</PossiblyUnusedMethod>
2022-10-10 12:53:13 +02:00
</file>
<file src="src/Psalm/Type/Atomic/TList.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
2022-10-10 12:53:13 +02:00
<code>replace</code>
<code>replace</code>
</ImpureMethodCall>
2022-12-21 04:59:35 +01:00
<ImpurePropertyAssignment>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$cloned->type_param]]></code>
2022-10-10 12:53:13 +02:00
</ImpurePropertyAssignment>
</file>
<file src="src/Psalm/Type/Atomic/TNonEmptyList.php">
2022-12-21 04:59:35 +01:00
<DeprecatedClass>
<code>TList</code>
</DeprecatedClass>
2022-12-21 04:59:35 +01:00
<PossiblyUnusedMethod>
<code>setCount</code>
</PossiblyUnusedMethod>
</file>
2022-10-10 12:53:13 +02:00
<file src="src/Psalm/Type/Atomic/TObjectWithProperties.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
2022-10-10 12:53:13 +02:00
<code>replace</code>
<code>replace</code>
</ImpureMethodCall>
</file>
<file src="src/Psalm/Type/Atomic/TTemplateKeyOf.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
2022-10-10 12:53:13 +02:00
<code>replace</code>
</ImpureMethodCall>
</file>
<file src="src/Psalm/Type/Atomic/TTemplatePropertiesOf.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
2022-10-10 12:53:13 +02:00
<code>replace</code>
</ImpureMethodCall>
</file>
<file src="src/Psalm/Type/Atomic/TTemplateValueOf.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
2022-10-10 12:53:13 +02:00
<code>replace</code>
</ImpureMethodCall>
2022-10-03 10:45:36 +02:00
</file>
<file src="src/Psalm/Type/MutableUnion.php">
2022-12-21 04:59:35 +01:00
<PossiblyUnusedProperty>
2022-10-03 10:45:36 +02:00
<code>$allow_mutations</code>
2022-10-10 12:53:13 +02:00
<code>$by_ref</code>
2022-10-03 10:45:36 +02:00
<code>$failed_reconciliation</code>
<code>$from_template_default</code>
<code>$has_mutations</code>
<code>$initialized_class</code>
<code>$reference_free</code>
</PossiblyUnusedProperty>
</file>
2021-03-23 06:30:51 +01:00
<file src="src/Psalm/Type/Reconciler.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedIntArrayOffset>
<code>$const_name</code>
2021-03-23 06:30:51 +01:00
<code>$type[0]</code>
2022-02-07 13:17:12 +01:00
<code>$type[0][0]</code>
2021-03-23 06:30:51 +01:00
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Type/TypeNode.php">
2022-12-21 04:59:35 +01:00
<ReferenceConstraintViolation>
<code>$node</code>
</ReferenceConstraintViolation>
</file>
<file src="src/Psalm/Type/TypeVisitor.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
<code>visit</code>
</ImpureMethodCall>
</file>
2022-10-03 10:45:36 +02:00
<file src="src/Psalm/Type/Union.php">
2022-12-21 04:59:35 +01:00
<PossiblyUnusedProperty>
2022-10-03 10:45:36 +02:00
<code>$ignore_isset</code>
</PossiblyUnusedProperty>
</file>
<file src="src/Psalm/Type/UnionTrait.php">
2022-12-21 04:59:35 +01:00
<ImpureMethodCall>
<code>traverse</code>
<code>traverse</code>
<code>traverseArray</code>
<code>traverseArray</code>
</ImpureMethodCall>
2022-12-21 04:59:35 +01:00
<MoreSpecificReturnType>
<code>TArray|TKeyedArray|TClassStringMap</code>
</MoreSpecificReturnType>
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedStringArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$this->types['array']]]></code>
</PossiblyUndefinedStringArrayOffset>
2022-12-21 04:59:35 +01:00
<PossiblyUnusedMethod>
2022-10-03 10:45:36 +02:00
<code>allFloatLiterals</code>
<code>allFloatLiterals</code>
<code>hasLowercaseString</code>
<code>hasLowercaseString</code>
2022-10-03 10:45:36 +02:00
</PossiblyUnusedMethod>
</file>
<file src="vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrowFunction.php">
2022-12-21 04:59:35 +01:00
<PossiblyUndefinedStringArrayOffset>
2023-01-25 16:54:33 +01:00
<code><![CDATA[$subNodes['expr']]]></code>
</PossiblyUndefinedStringArrayOffset>
</file>
2021-03-23 06:30:51 +01:00
</files>