2021-03-23 06:30:51 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2024-01-17 13:43:35 +01:00
|
|
|
<files psalm-version="dev-master@950293c6e74c6e9db842f537c5722755b1594313">
|
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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="examples/plugins/FunctionCasingChecker.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$function_storage->cased_name]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="examples/plugins/StringChecker.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$appearing_method_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/CodeLocation.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$this->docblock_line_number]]></code>
|
|
|
|
<code><![CDATA[$this->docblock_line_number]]></code>
|
|
|
|
<code><![CDATA[$this->docblock_start]]></code>
|
|
|
|
<code><![CDATA[$this->docblock_start_line_number]]></code>
|
|
|
|
<code><![CDATA[$this->text]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
2021-03-23 06:30:51 +01:00
|
|
|
<file src="src/Psalm/Codebase.php">
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$function_name</code>
|
|
|
|
<code><![CDATA[$aliases->namespace]]></code>
|
|
|
|
<code><![CDATA[$aliases->namespace]]></code>
|
|
|
|
<code><![CDATA[$aliases->namespace]]></code>
|
|
|
|
<code><![CDATA[$aliases->namespace_first_stmt_start]]></code>
|
|
|
|
<code><![CDATA[$aliases->uses_end]]></code>
|
|
|
|
<code>$file_path</code>
|
|
|
|
<code><![CDATA[$item->insertText]]></code>
|
|
|
|
<code><![CDATA[strpos($reference->symbol, '()')]]></code>
|
|
|
|
<code><![CDATA[strpos($reference->symbol, '()')]]></code>
|
|
|
|
<code><![CDATA[strpos($reference->symbol, '()')]]></code>
|
|
|
|
<code><![CDATA[strpos($reference->symbol, '()')]]></code>
|
|
|
|
<code><![CDATA[strpos($reference->symbol, '::')]]></code>
|
|
|
|
<code><![CDATA[strpos($reference->symbol, '::')]]></code>
|
|
|
|
<code><![CDATA[strpos($reference->symbol, '\\')]]></code>
|
|
|
|
<code><![CDATA[strpos($symbol, '::')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
2023-10-10 00:46:28 +02:00
|
|
|
<file src="src/Psalm/Config.php">
|
|
|
|
<PossiblyNullArgument>
|
|
|
|
<code>$deprecated_element_xml</code>
|
|
|
|
</PossiblyNullArgument>
|
2023-11-27 13:41:27 +01:00
|
|
|
<PossiblyNullReference>
|
|
|
|
<code>addAttribute</code>
|
|
|
|
</PossiblyNullReference>
|
2023-10-21 14:20:08 +02:00
|
|
|
<PropertyTypeCoercion>
|
|
|
|
<code>$this</code>
|
|
|
|
</PropertyTypeCoercion>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$composer_json</code>
|
|
|
|
<code>!$config_path</code>
|
|
|
|
<code>!$file_path</code>
|
|
|
|
<code><![CDATA[!strpos($issue_type, 'Reference')]]></code>
|
|
|
|
<code>$cwd</code>
|
|
|
|
<code>$dir</code>
|
|
|
|
<code><![CDATA[$e->function_id]]></code>
|
|
|
|
<code><![CDATA[$igbinary_version = phpversion('igbinary')]]></code>
|
|
|
|
<code>$issue_handler_children</code>
|
|
|
|
<code>$parent_issue_type</code>
|
2024-01-17 13:43:35 +01:00
|
|
|
<code>$phpstorm_meta_files</code>
|
2024-01-15 10:33:46 +01:00
|
|
|
<code><![CDATA[$pluginclas_class_path = $this->composer_class_loader->findFile($pluginClassName)]]></code>
|
|
|
|
<code><![CDATA[$this->autoloader]]></code>
|
|
|
|
<code><![CDATA[strpos($file_contents, $deprecated_element_xml->localName, $offset)]]></code>
|
|
|
|
<code><![CDATA[strrpos($file_contents, $attribute->name, $offset - strlen($file_contents))]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Config/Creator.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$suggested_dir</code>
|
2024-01-17 13:43:35 +01:00
|
|
|
<code><![CDATA[glob($current_dir . DIRECTORY_SEPARATOR . '**/**/*.php', GLOB_NOSORT)]]></code>
|
|
|
|
<code><![CDATA[glob($current_dir . DIRECTORY_SEPARATOR . '**/*.php', GLOB_NOSORT)]]></code>
|
|
|
|
<code><![CDATA[glob($current_dir . DIRECTORY_SEPARATOR . '*.php', GLOB_NOSORT)]]></code>
|
2024-01-15 10:33:46 +01:00
|
|
|
<code><![CDATA[strpos($issue->file_path, 'stub')]]></code>
|
|
|
|
<code><![CDATA[strpos($issue->file_path, 'vendor')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2023-10-10 00:46:28 +02:00
|
|
|
</file>
|
2021-03-23 06:30:51 +01:00
|
|
|
<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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$directory_path</code>
|
|
|
|
<code>!$glob_directory_path</code>
|
|
|
|
<code>!$glob_file_path</code>
|
|
|
|
<code><![CDATA[$e->directory]]></code>
|
|
|
|
<code><![CDATA[$e->file]]></code>
|
|
|
|
<code><![CDATA[$e->referencedClass]]></code>
|
|
|
|
<code><![CDATA[$e->referencedConstant]]></code>
|
|
|
|
<code><![CDATA[$e->referencedFunction]]></code>
|
|
|
|
<code><![CDATA[$e->referencedMethod]]></code>
|
|
|
|
<code><![CDATA[$e->referencedProperty]]></code>
|
|
|
|
<code><![CDATA[$e->referencedVariable]]></code>
|
|
|
|
<code>glob($parts[0], GLOB_NOSORT)</code>
|
|
|
|
<code>glob($parts[0], GLOB_ONLYDIR | GLOB_NOSORT)</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Context.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[strpos($key, '()')]]></code>
|
|
|
|
<code><![CDATA[strpos($var_id, '()')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="src/Psalm/Internal/Algebra.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$creating_conditional_id</code>
|
|
|
|
<code>$creating_conditional_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/AttributesAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$arg->name->name ?? null !== "name"]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
2021-03-23 06:30:51 +01:00
|
|
|
<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>
|
2022-12-13 21:40:19 +01:00
|
|
|
<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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$declaring_property_class</code>
|
|
|
|
<code>!$fq_class_name</code>
|
|
|
|
<code><![CDATA[$class_context->self]]></code>
|
|
|
|
<code><![CDATA[$class_context->self]]></code>
|
|
|
|
<code><![CDATA[$class_context->self]]></code>
|
|
|
|
<code><![CDATA[$class_context->self]]></code>
|
|
|
|
<code><![CDATA[$class_storage->template_extended_params]]></code>
|
|
|
|
<code><![CDATA[$class_storage->template_types]]></code>
|
|
|
|
<code>$class_template_params</code>
|
|
|
|
<code><![CDATA[$end_type->initialized_class]]></code>
|
|
|
|
<code>$parent_fq_class_name</code>
|
|
|
|
<code><![CDATA[$stmt->getStmts()]]></code>
|
|
|
|
<code><![CDATA[$stmt->getStmts()]]></code>
|
|
|
|
<code><![CDATA[$storage->template_extended_params]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code><![CDATA[ClassTemplateParamCollector::collect(
|
|
|
|
$codebase,
|
|
|
|
$class_storage,
|
|
|
|
$codebase->classlike_storage_provider->get($original_fq_classlike_name),
|
|
|
|
strtolower($stmt->name->name),
|
|
|
|
$this_object_type,
|
|
|
|
)]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
2022-12-13 21:40:19 +01:00
|
|
|
<file src="src/Psalm/Internal/Analyzer/ClassLikeAnalyzer.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$property_name</code>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$appearing_property_class</code>
|
|
|
|
<code><![CDATA[!$context->self]]></code>
|
|
|
|
<code>!$declaring_property_class</code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$parent_storage->template_types]]></code>
|
|
|
|
<code>$resolved_name</code>
|
|
|
|
<code><![CDATA[$storage->template_covariants]]></code>
|
|
|
|
<code><![CDATA[$storage->template_extended_params]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/ClosureAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/CommentAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$original_type</code>
|
|
|
|
<code><![CDATA[!$var_comment->description]]></code>
|
|
|
|
<code><![CDATA[!$var_comment->var_id]]></code>
|
|
|
|
<code>!$var_type_tokens</code>
|
|
|
|
<code>$template_type_map</code>
|
|
|
|
<code>$type_aliases</code>
|
|
|
|
<code><![CDATA[$var_comment->line_number]]></code>
|
|
|
|
<code><![CDATA[$var_comment->type_end]]></code>
|
|
|
|
<code><![CDATA[$var_comment->type_start]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/FileAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$namespace_name</code>
|
|
|
|
<code>$namespace_name</code>
|
|
|
|
<code><![CDATA[$this->root_file_name]]></code>
|
|
|
|
<code><![CDATA[$this->root_file_path]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/FunctionAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$namespace</code>
|
|
|
|
<code>$namespace</code>
|
|
|
|
<code><![CDATA[$ns = $statements_analyzer->getNamespace()]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/FunctionLike/ReturnTypeAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$function->getStmts()]]></code>
|
|
|
|
<code>$class_template_params</code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code>$fq_class_name</code>
|
|
|
|
<code>$self_fq_class_name</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/FunctionLikeAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[!$storage->cased_name]]></code>
|
|
|
|
<code><![CDATA[!$storage->cased_name]]></code>
|
|
|
|
<code><![CDATA[!strpos($cased_method_id, '__construct')]]></code>
|
|
|
|
<code><![CDATA[$appearing_class_storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$appearing_class_storage->template_types]]></code>
|
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code>$context_self</code>
|
|
|
|
<code>$hash</code>
|
|
|
|
<code>$namespace</code>
|
|
|
|
<code>$parent_fqcln</code>
|
|
|
|
<code>$parent_fqcln</code>
|
|
|
|
<code><![CDATA[$storage->cased_name]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code>$template_types</code>
|
|
|
|
<code><![CDATA[$this->function->getStmts()]]></code>
|
|
|
|
<code><![CDATA[$this->source->getTemplateTypeMap()]]></code>
|
|
|
|
<code><![CDATA[$this->storage->template_types]]></code>
|
|
|
|
<code><![CDATA[strpos($cased_method_id, '__destruct')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/MethodAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$calling_method_id</code>
|
|
|
|
<code><![CDATA[!$context->self]]></code>
|
|
|
|
<code>$appearing_method_class</code>
|
|
|
|
<code>$appearing_method_class</code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code>$context_self</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/MethodComparator.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$guide_classlike_storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$guide_method_storage->cased_name]]></code>
|
|
|
|
<code><![CDATA[$guide_method_storage->cased_name]]></code>
|
|
|
|
<code><![CDATA[$guide_method_storage->cased_name]]></code>
|
|
|
|
<code><![CDATA[$implementer_called_class_storage->template_extended_params]]></code>
|
|
|
|
<code><![CDATA[$implementer_classlike_storage->template_extended_params]]></code>
|
|
|
|
<code><![CDATA[$implementer_classlike_storage->template_extended_params]]></code>
|
|
|
|
<code><![CDATA[$implementer_method_storage->defining_fqcln]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-13 21:40:19 +01:00
|
|
|
</file>
|
2023-10-21 14:20:08 +02:00
|
|
|
<file src="src/Psalm/Internal/Analyzer/NamespaceAnalyzer.php">
|
|
|
|
<NonInvariantDocblockPropertyType>
|
|
|
|
<code>$source</code>
|
|
|
|
</NonInvariantDocblockPropertyType>
|
|
|
|
</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>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$php_minor_version</code>
|
2021-03-23 06:30:51 +01:00
|
|
|
<code>$source_parts[1]</code>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$this_context->self]]></code>
|
|
|
|
<code><![CDATA[$destination_pos = strpos($destination, '*')]]></code>
|
|
|
|
<code>$potential_file_path</code>
|
|
|
|
<code><![CDATA[$source_pos = strpos($source, '*')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Block/DoAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$do_context->branch_point]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$for_context->branch_point]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-18 15:00:15 +01:00
|
|
|
</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>
|
2022-11-04 19:04:23 +01:00
|
|
|
<code>if (AtomicTypeComparator::isContainedBy(</code>
|
|
|
|
<code>if (AtomicTypeComparator::isContainedBy(</code>
|
|
|
|
</ConflictingReferenceConstraint>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$var_comment->var_id]]></code>
|
|
|
|
<code><![CDATA[!$var_comment->var_id]]></code>
|
|
|
|
<code>$calling_type_params</code>
|
|
|
|
<code><![CDATA[$foreach_context->branch_point]]></code>
|
|
|
|
<code><![CDATA[$generic_storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$statements_analyzer->getTemplateTypeMap()]]></code>
|
|
|
|
<code><![CDATA[$var_comment->line_number]]></code>
|
|
|
|
<code><![CDATA[$var_comment->type_end]]></code>
|
|
|
|
<code><![CDATA[$var_comment->type_start]]></code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Block/IfElse/ElseAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$if_scope->negatable_if_types]]></code>
|
|
|
|
<code><![CDATA[$statements_analyzer->getTemplateTypeMap()]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Block/IfElse/ElseIfAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$statements_analyzer->getTemplateTypeMap()]]></code>
|
|
|
|
<code><![CDATA[$statements_analyzer->getTemplateTypeMap()]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Block/IfElse/IfAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$statements_analyzer->getTemplateTypeMap()]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Block/IfElseAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$context->branch_point]]></code>
|
|
|
|
<code><![CDATA[$else_context->branch_point]]></code>
|
|
|
|
<code><![CDATA[$else_context->branch_point]]></code>
|
|
|
|
<code><![CDATA[$if_scope->assigned_var_ids]]></code>
|
|
|
|
<code><![CDATA[$if_scope->new_vars]]></code>
|
|
|
|
<code><![CDATA[$if_scope->redefined_vars]]></code>
|
|
|
|
<code><![CDATA[$statements_analyzer->getTemplateTypeMap()]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
2021-06-04 20:39:38 +02:00
|
|
|
<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>
|
2021-06-04 20:39:38 +02:00
|
|
|
</InvalidPropertyAssignmentValue>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$switch_var_id</code>
|
|
|
|
<code><![CDATA[$switch_scope->new_assigned_var_ids]]></code>
|
|
|
|
<code><![CDATA[$switch_scope->new_vars_in_scope]]></code>
|
|
|
|
<code><![CDATA[$switch_scope->possibly_redefined_vars]]></code>
|
|
|
|
<code><![CDATA[$switch_scope->possibly_redefined_vars]]></code>
|
|
|
|
<code><![CDATA[$switch_scope->redefined_vars]]></code>
|
|
|
|
<code>$switch_var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-06-04 20:39:38 +02:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$case_context->branch_point]]></code>
|
|
|
|
<code>$nested_or_options</code>
|
|
|
|
<code>$switch_var_id</code>
|
|
|
|
<code>$switch_var_id</code>
|
|
|
|
<code>$switch_var_id</code>
|
|
|
|
<code>$type_statements</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Block/TryAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$try_context->branch_point]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Block/WhileAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$while_context->branch_point]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/ArrayAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$var_name</code>
|
|
|
|
<code>!$var_type</code>
|
|
|
|
<code><![CDATA[!strpos($first_var_name, '->')]]></code>
|
|
|
|
<code><![CDATA[!strpos($first_var_name, '[')]]></code>
|
|
|
|
<code>$array_root</code>
|
|
|
|
<code>$count_equality_position</code>
|
|
|
|
<code>$count_equality_position</code>
|
|
|
|
<code>$count_equality_position</code>
|
|
|
|
<code>$count_inequality_position</code>
|
|
|
|
<code>$count_inequality_position</code>
|
|
|
|
<code>$count_inequality_position</code>
|
|
|
|
<code>$false_position</code>
|
|
|
|
<code>$false_position</code>
|
|
|
|
<code>$first_var_name</code>
|
|
|
|
<code>$first_var_name</code>
|
|
|
|
<code>$first_var_name</code>
|
|
|
|
<code>$first_var_name</code>
|
|
|
|
<code>$first_var_name</code>
|
|
|
|
<code>$first_var_name</code>
|
|
|
|
<code>$first_var_name</code>
|
|
|
|
<code>$first_var_name</code>
|
|
|
|
<code>$first_var_name</code>
|
|
|
|
<code>$first_var_name</code>
|
|
|
|
<code>$first_var_name</code>
|
|
|
|
<code>$first_var_name</code>
|
|
|
|
<code>$first_var_name</code>
|
|
|
|
<code>$first_var_name_in_array_argument</code>
|
|
|
|
<code>$get_debug_type_position</code>
|
|
|
|
<code>$get_debug_type_position</code>
|
|
|
|
<code>$getclass_position</code>
|
|
|
|
<code>$getclass_position</code>
|
|
|
|
<code>$gettype_position</code>
|
|
|
|
<code>$gettype_position</code>
|
|
|
|
<code>$if_false_assertions</code>
|
|
|
|
<code>$if_true_assertions</code>
|
|
|
|
<code>$inferior_value_position</code>
|
|
|
|
<code>$other_var_name</code>
|
|
|
|
<code>$superior_value_position</code>
|
|
|
|
<code>$this_class_name</code>
|
|
|
|
<code>$this_class_name</code>
|
|
|
|
<code>$this_class_name</code>
|
|
|
|
<code>$true_position</code>
|
|
|
|
<code>$true_position</code>
|
|
|
|
<code>$typed_value_position</code>
|
|
|
|
<code>$typed_value_position</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name</code>
|
|
|
|
<code>$var_name_left</code>
|
|
|
|
<code>$var_name_right</code>
|
|
|
|
<code>$var_type</code>
|
|
|
|
<code>$var_type</code>
|
|
|
|
<code>$var_type</code>
|
|
|
|
<code>self::hasReconcilableNonEmptyCountEqualityCheck($conditional)</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/ArrayAssignmentAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$parent_var_id</code>
|
|
|
|
<code>$object_id</code>
|
|
|
|
<code>$parent_var_id</code>
|
|
|
|
<code>$parent_var_id</code>
|
|
|
|
<code>$root_var_id</code>
|
|
|
|
<code>$root_var_id</code>
|
|
|
|
<code>$root_var_id</code>
|
|
|
|
<code>$root_var_id</code>
|
|
|
|
<code>$root_var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/InstancePropertyAssignmentAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$context->self]]></code>
|
|
|
|
<code>!$var_id</code>
|
|
|
|
<code>$appearing_property_class</code>
|
|
|
|
<code>$class_template_params</code>
|
|
|
|
<code>$class_template_params</code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code>$declaring_property_class</code>
|
|
|
|
<code><![CDATA[$property_storage->getter_method]]></code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_property_id</code>
|
|
|
|
<code>$var_property_id</code>
|
|
|
|
<code><![CDATA[strpos($context->calling_method_id, '::__clone')]]></code>
|
|
|
|
<code><![CDATA[strpos($context->calling_method_id, '::__construct')]]></code>
|
|
|
|
<code><![CDATA[strpos($context->calling_method_id, '::__unserialize')]]></code>
|
|
|
|
<code><![CDATA[strpos($context->calling_method_id, '::unserialize')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
2022-12-13 21:40:19 +01:00
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/StaticPropertyAssignmentAnalyzer.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$new_property_name</code>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-13 21:40:19 +01:00
|
|
|
</file>
|
2023-05-10 15:43:22 +02:00
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php">
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$var_comment->var_id]]></code>
|
|
|
|
<code><![CDATA[!strpos($root_var_id ?? '', '->')]]></code>
|
|
|
|
<code><![CDATA[!strpos($var_id, '->')]]></code>
|
|
|
|
<code><![CDATA[!strpos($var_id, '::')]]></code>
|
|
|
|
<code>$assign_value_id</code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code>$extended_var_id</code>
|
|
|
|
<code>$extended_var_id</code>
|
|
|
|
<code>$extended_var_id</code>
|
|
|
|
<code>$extended_var_id</code>
|
|
|
|
<code>$extended_var_id</code>
|
|
|
|
<code>$list_var_id</code>
|
|
|
|
<code>$list_var_id</code>
|
|
|
|
<code>$list_var_id</code>
|
|
|
|
<code>$prop_name</code>
|
|
|
|
<code>$root_var_id</code>
|
|
|
|
<code><![CDATA[$var_comment->line_number]]></code>
|
|
|
|
<code><![CDATA[$var_comment->type_end]]></code>
|
|
|
|
<code><![CDATA[$var_comment->type_start]]></code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2023-05-10 15:43:22 +02:00
|
|
|
<UnsupportedPropertyReferenceUsage>
|
|
|
|
<code><![CDATA[$context->vars_in_scope[$lhs_var_id] = &$context->vars_in_scope[$rhs_var_id]]]></code>
|
|
|
|
</UnsupportedPropertyReferenceUsage>
|
|
|
|
</file>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/AndAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$statements_analyzer->getTemplateTypeMap()]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/OrAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$context->branch_point]]></code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
2021-03-23 06:30:51 +01:00
|
|
|
<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>
|
2022-12-13 21:40:19 +01:00
|
|
|
<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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$container_class</code>
|
2024-01-17 13:43:35 +01:00
|
|
|
<code>!$var_id</code>
|
2024-01-15 10:33:46 +01:00
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code>$class_generic_params</code>
|
|
|
|
<code><![CDATA[$context->calling_function_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_function_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code>$self_fq_class_name</code>
|
|
|
|
<code>$static_fq_class_name</code>
|
|
|
|
<code><![CDATA[strpos($atomic_type->value, '::')]]></code>
|
|
|
|
<code><![CDATA[strpos($input_type_part->value, '::')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$context->self]]></code>
|
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code>$cased_method_id</code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$function_param->sinks]]></code>
|
|
|
|
<code>$function_params</code>
|
|
|
|
<code>$function_params</code>
|
|
|
|
<code>$function_params</code>
|
|
|
|
<code><![CDATA[$function_storage->template_types]]></code>
|
|
|
|
<code>$method_id</code>
|
|
|
|
<code>$method_id</code>
|
|
|
|
<code>$method_id</code>
|
|
|
|
<code>$method_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code><![CDATA[empty($statements_analyzer->getFQCLN())]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</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>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$method_name</code>
|
2021-03-23 06:30:51 +01:00
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$container_class</code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/ClassTemplateParamCollector.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$template_types</code>
|
|
|
|
<code>!$template_types</code>
|
|
|
|
<code><![CDATA[$class_storage->template_types]]></code>
|
|
|
|
<code>$method_name</code>
|
|
|
|
<code>$overridden_template_types</code>
|
|
|
|
<code><![CDATA[$static_class_storage->template_extended_params]]></code>
|
|
|
|
<code><![CDATA[$static_class_storage->template_types]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php">
|
2024-01-15 10:33:46 +01:00
|
|
|
<PossiblyNullArgument>
|
|
|
|
<code>$function_name</code>
|
|
|
|
<code>$function_name</code>
|
|
|
|
</PossiblyNullArgument>
|
|
|
|
<PossiblyNullPropertyFetch>
|
|
|
|
<code><![CDATA[$stmt->getArgs()[0]->value]]></code>
|
|
|
|
</PossiblyNullPropertyFetch>
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedArrayOffset>
|
2023-01-25 16:54:33 +01:00
|
|
|
<code><![CDATA[$stmt->getArgs()[0]]]></code>
|
2022-12-13 21:40:19 +01:00
|
|
|
</PossiblyUndefinedArrayOffset>
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$parts[1]</code>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$function_call_info->function_id]]></code>
|
|
|
|
<code><![CDATA[$function_call_info->function_id]]></code>
|
|
|
|
<code><![CDATA[$function_call_info->function_id]]></code>
|
|
|
|
<code><![CDATA[$function_call_info->function_id]]></code>
|
|
|
|
<code><![CDATA[$function_call_info->function_id]]></code>
|
|
|
|
<code><![CDATA[$function_call_info->function_id]]></code>
|
|
|
|
<code><![CDATA[$statements_analyzer->getTemplateTypeMap()]]></code>
|
|
|
|
<code><![CDATA[strpos($var_type_part->value, '::')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-13 21:40:19 +01:00
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallReturnTypeFetcher.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$method</code>
|
2021-03-23 06:30:51 +01:00
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$function_storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$function_storage->template_types]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/AtomicMethodCallAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$class_storage->mixin_declaring_fqcln]]></code>
|
|
|
|
<code><![CDATA[$class_storage->mixin_declaring_fqcln]]></code>
|
|
|
|
<code><![CDATA[$class_storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$class_storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code>$lhs_var_id</code>
|
|
|
|
<code>$mixin_class_template_params</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/ExistingAtomicMethodCallAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$class_template_params</code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code>$lhs_var_id</code>
|
|
|
|
<code><![CDATA[$method_storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$method_storage->template_types]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallProhibitionAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$caller_identifier</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallPurityAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$method_storage->this_property_mutations]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallReturnTypeFetcher.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$parent_node->specialization_key]]></code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodVisibilityAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$context->self]]></code>
|
|
|
|
<code><![CDATA[!$context->self]]></code>
|
|
|
|
<code>$appearing_method_name</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MissingMethodCallHandler.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$found_generic_params</code>
|
|
|
|
<code>$found_generic_params</code>
|
|
|
|
<code>$found_generic_params</code>
|
|
|
|
<code>$found_generic_params</code>
|
|
|
|
<code>$found_generic_params</code>
|
|
|
|
<code>$found_generic_params</code>
|
|
|
|
<code>$intersection_method_id</code>
|
|
|
|
<code>$intersection_method_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$statements_analyzer->getFQCLN()]]></code>
|
|
|
|
<code>$lhs_var_id</code>
|
|
|
|
<code>$lhs_var_id</code>
|
|
|
|
<code>$lhs_var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/NamedFunctionCallHandler.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$get_class_name = $statements_analyzer->getFQCLN()]]></code>
|
|
|
|
<code>$path_to_file</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code><![CDATA[strpos($var_id, '>')]]></code>
|
|
|
|
<code><![CDATA[strpos($var_id, '[')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/NewAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code>$fq_class_name</code>
|
|
|
|
<code>$fq_class_name</code>
|
|
|
|
<code><![CDATA[$statements_analyzer->getFullyQualifiedFunctionMethodOrNamespaceName()]]></code>
|
|
|
|
<code><![CDATA[$storage->template_extended_params]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/StaticCallAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$class_storage->parent_class]]></code>
|
|
|
|
<code>$child_fq_class_name</code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/StaticMethod/AtomicStaticCallAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$context->self]]></code>
|
|
|
|
<code>!$fq_class_name</code>
|
|
|
|
<code><![CDATA[$class_storage->mixin_declaring_fqcln]]></code>
|
|
|
|
<code><![CDATA[$class_storage->parent_class]]></code>
|
|
|
|
<code><![CDATA[$class_storage->parent_class]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
2022-12-13 21:40:19 +01:00
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/StaticMethod/ExistingAtomicStaticCallAnalyzer.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$new_method_name</code>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code>$found_generic_params</code>
|
|
|
|
<code>$found_generic_params</code>
|
|
|
|
<code><![CDATA[$self_class_storage->template_extended_params]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-13 21:40:19 +01:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$arg_var_id</code>
|
|
|
|
<code>$arg_var_id</code>
|
|
|
|
<code>$assertion_var_id</code>
|
|
|
|
<code><![CDATA[$calling_class_storage->template_extended_params]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$declaring_class_storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$documenting_method_storage->template_types]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
2022-12-13 21:40:19 +01:00
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/ClassConstAnalyzer.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$new_const_name</code>
|
|
|
|
<code>$new_const_name</code>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/ExpressionIdentifier.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$lhs_var_name</code>
|
|
|
|
<code>!$object_id</code>
|
|
|
|
<code>!$object_id</code>
|
|
|
|
<code>!$this_class_name</code>
|
|
|
|
<code>$object_id</code>
|
|
|
|
<code>$property_root</code>
|
|
|
|
<code>$resolved_name</code>
|
|
|
|
<code>$resolved_name</code>
|
|
|
|
<code>$root_var_id</code>
|
|
|
|
<code>$this_class_name</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-13 21:40:19 +01:00
|
|
|
</file>
|
2022-11-04 19:04:23 +01:00
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/ArrayFetchAnalyzer.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<ReferenceConstraintViolation>
|
2022-11-04 19:04:23 +01:00
|
|
|
<code>$stmt_type</code>
|
|
|
|
<code>$stmt_type</code>
|
|
|
|
<code>$stmt_type</code>
|
|
|
|
</ReferenceConstraintViolation>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$dim_var_id</code>
|
|
|
|
<code>$dim_var_id</code>
|
|
|
|
<code>$extended_var_id</code>
|
|
|
|
<code>$extended_var_id</code>
|
|
|
|
<code>$keyed_array_var_id</code>
|
|
|
|
<code>$keyed_array_var_id</code>
|
|
|
|
<code>$keyed_array_var_id</code>
|
|
|
|
<code>$keyed_array_var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-11-04 19:04:23 +01:00
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/AtomicPropertyFetchAnalyzer.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<ReferenceConstraintViolation>
|
2022-11-04 19:04:23 +01:00
|
|
|
<code>$stmt_type</code>
|
|
|
|
</ReferenceConstraintViolation>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code>$declaring_property_class</code>
|
|
|
|
<code>$declaring_property_class</code>
|
|
|
|
<code><![CDATA[$property_class_storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$property_class_storage->template_types]]></code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_property_id</code>
|
|
|
|
<code>$var_property_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-11-04 19:04:23 +01:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$prop_name</code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code>$declaring_property_class</code>
|
|
|
|
<code>$stmt_var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
2022-12-13 21:40:19 +01:00
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/StaticPropertyFetchAnalyzer.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$new_property_name</code>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$prop_name</code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code>$string_type</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/VariableFetchAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$branch_point</code>
|
|
|
|
<code>$branch_point</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/IncDecExpressionAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/IncludeAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$evaled_path</code>
|
|
|
|
<code>!$var_id</code>
|
|
|
|
<code>$include_path</code>
|
|
|
|
<code>$left_string</code>
|
|
|
|
<code>$path_to_file</code>
|
|
|
|
<code>$right_string</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/MagicConstAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$context->self]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/MatchAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$switch_var_id</code>
|
|
|
|
<code>$switch_var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/SimpleTypeInferer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$fq_classlike_name</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/TernaryAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$context->branch_point]]></code>
|
|
|
|
<code><![CDATA[$statements_analyzer->getTemplateTypeMap()]]></code>
|
|
|
|
<code><![CDATA[$statements_analyzer->getTemplateTypeMap()]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-13 21:40:19 +01:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$var_comment->var_id]]></code>
|
|
|
|
<code>$class_template_params</code>
|
|
|
|
<code><![CDATA[$classlike_storage->declaring_yield_fqcn]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code><![CDATA[$var_comment->line_number]]></code>
|
|
|
|
<code><![CDATA[$var_comment->type_end]]></code>
|
|
|
|
<code><![CDATA[$var_comment->type_start]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
2022-12-13 21:40:19 +01:00
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/ReturnAnalyzer.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$method_name</code>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$context->calling_function_id]]></code>
|
|
|
|
<code><![CDATA[!$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[!$var_comment->var_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_function_id]]></code>
|
|
|
|
<code><![CDATA[$context->self]]></code>
|
|
|
|
<code>$found_generic_params</code>
|
|
|
|
<code><![CDATA[$var_comment->line_number]]></code>
|
|
|
|
<code><![CDATA[$var_comment->type_end]]></code>
|
|
|
|
<code><![CDATA[$var_comment->type_start]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/UnsetAnalyzer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$root_var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-13 21:40:19 +01:00
|
|
|
</file>
|
2021-03-23 06:30:51 +01:00
|
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/UnusedAssignmentRemover.php">
|
2023-12-03 13:06:36 +01:00
|
|
|
<PossiblyUndefinedArrayOffset>
|
|
|
|
<code>$token_list[$iter]</code>
|
|
|
|
</PossiblyUndefinedArrayOffset>
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
2021-09-20 12:43:19 +02:00
|
|
|
<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>
|
|
|
|
</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>
|
2022-12-13 21:40:19 +01:00
|
|
|
</PossiblyUndefinedArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$branch_point</code>
|
|
|
|
<code>$new_issues</code>
|
|
|
|
<code><![CDATA[$ns = $this->getNamespace()]]></code>
|
|
|
|
<code>$possible_traced_variable_names</code>
|
|
|
|
<code><![CDATA[$this->fake_this_class]]></code>
|
|
|
|
<code><![CDATA[$this->vars_to_initialize]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Cli/LanguageServer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$root_path</code>
|
|
|
|
<code><![CDATA[$options['verbose']]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-13 21:40:19 +01:00
|
|
|
</file>
|
2023-12-03 13:06:36 +01:00
|
|
|
<file src="src/Psalm/Internal/Cli/Psalm.php">
|
2024-01-15 13:27:53 +01:00
|
|
|
<InvalidScalarArgument>
|
2023-12-03 13:06:36 +01:00
|
|
|
<code><![CDATA[$options['f'] ?? null]]></code>
|
2024-01-15 13:27:53 +01:00
|
|
|
</InvalidScalarArgument>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$config->error_baseline]]></code>
|
|
|
|
<code>!$paths_to_check</code>
|
|
|
|
<code>!$root_path</code>
|
|
|
|
<code><![CDATA[!file_put_contents($current_dir . 'psalm.xml', $template_contents)]]></code>
|
|
|
|
<code><![CDATA[!file_put_contents($current_dir . 'psalm.xml', $template_contents)]]></code>
|
|
|
|
<code>$baseline_file_path</code>
|
|
|
|
<code>$cache_directory</code>
|
|
|
|
<code><![CDATA[$config->threads]]></code>
|
|
|
|
<code>$find_references_to</code>
|
|
|
|
<code>empty($baselineFile)</code>
|
|
|
|
<code><![CDATA[getenv('PSALM_SHEPHERD')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Cli/Psalter.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$root_path</code>
|
|
|
|
<code>$paths_to_check</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2023-12-03 13:06:36 +01:00
|
|
|
</file>
|
2022-12-13 21:40:19 +01:00
|
|
|
<file src="src/Psalm/Internal/Cli/Refactor.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$identifier_name</code>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$last_arg</code>
|
|
|
|
<code>!$last_arg</code>
|
|
|
|
<code>!$last_arg</code>
|
|
|
|
<code>!$root_path</code>
|
|
|
|
<code><![CDATA[strpos($last_arg_part, '::')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/CliUtils.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$config_file</code>
|
|
|
|
<code>!$end_psalm_open_tag</code>
|
|
|
|
<code>!$path_to_check</code>
|
|
|
|
<code><![CDATA[$config->error_baseline]]></code>
|
|
|
|
<code>$f_paths</code>
|
|
|
|
<code>$path_to_config</code>
|
|
|
|
<code>$stdin = fgets(STDIN)</code>
|
|
|
|
<code><![CDATA[$version = $config->getPHPVersionFromComposerJson()]]></code>
|
|
|
|
<code><![CDATA[$version = $config->getPhpVersionFromConfig()]]></code>
|
|
|
|
<code><![CDATA[strpos(__NAMESPACE__, 'HumbugBox')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-13 21:40:19 +01:00
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Codebase/Analyzer.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$trait</code>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!strpos($changed_member, '&')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-13 21:40:19 +01:00
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Codebase/ClassLikes.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$destination_name</code>
|
|
|
|
<code>$destination_name</code>
|
|
|
|
<code>$destination_name</code>
|
|
|
|
<code>$source_const_name</code>
|
|
|
|
<code>$stub</code>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$calling_fq_class_name</code>
|
|
|
|
<code>!$insert_pos</code>
|
|
|
|
<code>!$insert_pos</code>
|
|
|
|
<code>!$insert_pos</code>
|
|
|
|
<code>$calling_fq_class_name</code>
|
|
|
|
<code>$calling_fq_class_name</code>
|
|
|
|
<code>$calling_fq_class_name</code>
|
|
|
|
<code>$calling_fq_class_name</code>
|
|
|
|
<code>$calling_fq_class_name</code>
|
|
|
|
<code>$calling_fq_class_name</code>
|
|
|
|
<code>$calling_fq_class_name</code>
|
|
|
|
<code>$calling_fq_class_name</code>
|
|
|
|
<code>$calling_fq_class_name</code>
|
|
|
|
<code>$calling_fq_class_name</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$file_path</code>
|
|
|
|
<code>$file_path</code>
|
|
|
|
<code>$file_path</code>
|
|
|
|
<code>$file_path</code>
|
|
|
|
<code>$file_path</code>
|
|
|
|
<code>$migrated_source_fqcln</code>
|
|
|
|
<code>$migrated_source_fqcln</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Codebase/ConstantTypeResolver.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$cond->value]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-13 21:40:19 +01:00
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Codebase/Functions.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$stub</code>
|
2021-03-23 06:30:51 +01:00
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$checked_file_path</code>
|
|
|
|
<code>!$root_file_path</code>
|
|
|
|
<code>$args</code>
|
|
|
|
<code><![CDATA[$function->cased_name]]></code>
|
|
|
|
<code>$namespace</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Codebase/InternalCallMapHandler.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$return_type_string</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
2023-10-19 13:32:52 +02:00
|
|
|
<file src="src/Psalm/Internal/Codebase/Methods.php">
|
|
|
|
<InvalidArgument>
|
|
|
|
<code><![CDATA[$class_storage->methods[$declaring_method_name]->stubbed]]></code>
|
|
|
|
</InvalidArgument>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$calling_class_name</code>
|
|
|
|
<code>!$extends</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$found_generic_params</code>
|
|
|
|
<code>$old_method_id</code>
|
|
|
|
<code>$source_file_path</code>
|
|
|
|
<code>$source_file_path</code>
|
|
|
|
<code>$source_file_path</code>
|
|
|
|
<code>$source_file_path</code>
|
|
|
|
<code>$source_file_path</code>
|
|
|
|
<code>$source_file_path</code>
|
|
|
|
<code>$source_file_path</code>
|
|
|
|
<code>$source_file_path</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2023-10-19 13:32:52 +02:00
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Codebase/Populator.php">
|
|
|
|
<InvalidArgument>
|
|
|
|
<code><![CDATA[$storage->methods[$implementing_method_id->method_name]->abstract]]></code>
|
|
|
|
</InvalidArgument>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!strpos($fq_classlike_name_lc, '\\')]]></code>
|
|
|
|
<code>$mapped_name</code>
|
|
|
|
<code><![CDATA[$parent_storage->template_extended_params]]></code>
|
|
|
|
<code><![CDATA[$parent_storage->template_extended_params]]></code>
|
|
|
|
<code><![CDATA[$parent_storage->template_extended_params]]></code>
|
|
|
|
<code><![CDATA[$parent_storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$storage->template_extended_params]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2023-10-19 13:32:52 +02:00
|
|
|
</file>
|
2022-12-13 21:40:19 +01:00
|
|
|
<file src="src/Psalm/Internal/Codebase/Properties.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Codebase/Scanner.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$composer_file_path</code>
|
|
|
|
<code><![CDATA[$function_storage->cased_name]]></code>
|
|
|
|
<code><![CDATA[$function_storage->cased_name]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Codebase/TaintFlowGraph.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$node->specialization_key]]></code>
|
|
|
|
<code><![CDATA[$node->unspecialized_id]]></code>
|
|
|
|
<code><![CDATA[$path->escaped_taints]]></code>
|
|
|
|
<code><![CDATA[$path->unescaped_taints]]></code>
|
|
|
|
<code><![CDATA[$source->specialization_key]]></code>
|
|
|
|
<code><![CDATA[end($source->path_types)]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Composer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[getenv('COMPOSER')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/DataFlow/DataFlowNode.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$specialization_key</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-13 21:40:19 +01:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$a->stmts]]></code>
|
|
|
|
<code><![CDATA[$b->stmts]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
2022-12-13 21:40:19 +01:00
|
|
|
<file src="src/Psalm/Internal/Diff/FileDiffer.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<InvalidArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$b[$y]</code>
|
|
|
|
</InvalidArrayOffset>
|
|
|
|
</file>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="src/Psalm/Internal/ExecutionEnvironment/BuildInfoCollector.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$this->readEnv['CI_PR_NUMBER']]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
2022-12-28 17:26:25 +01:00
|
|
|
<file src="src/Psalm/Internal/ExecutionEnvironment/GitInfoCollector.php">
|
|
|
|
<PossiblyUndefinedArrayOffset>
|
|
|
|
<code>$exploded[1]</code>
|
|
|
|
<code>$url</code>
|
|
|
|
</PossiblyUndefinedArrayOffset>
|
|
|
|
</file>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="src/Psalm/Internal/FileManipulation/FileManipulationBuffer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$var_end</code>
|
|
|
|
<code>$var_start</code>
|
|
|
|
<code><![CDATA[strrpos($comment_text, "\n", $var_start - strlen($comment_text))]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/FileManipulation/FunctionDocblockManipulator.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$manipulator->new_php_return_type]]></code>
|
|
|
|
<code>$last_arg_position</code>
|
|
|
|
<code><![CDATA[$manipulator->new_php_return_type]]></code>
|
|
|
|
<code><![CDATA[$manipulator->new_phpdoc_return_type]]></code>
|
|
|
|
<code><![CDATA[$manipulator->return_typehint_colon_start]]></code>
|
|
|
|
<code><![CDATA[$manipulator->return_typehint_end]]></code>
|
|
|
|
<code><![CDATA[$manipulator->return_typehint_end]]></code>
|
|
|
|
<code><![CDATA[$manipulator->return_typehint_start]]></code>
|
|
|
|
<code><![CDATA[$manipulator->return_typehint_start]]></code>
|
|
|
|
<code>$php_type</code>
|
|
|
|
<code><![CDATA[$this->new_phpdoc_return_type]]></code>
|
|
|
|
<code><![CDATA[$this->new_psalm_return_type]]></code>
|
|
|
|
<code><![CDATA[$this->return_type_description]]></code>
|
|
|
|
<code><![CDATA[$this->return_type_description]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$manipulator->new_php_type]]></code>
|
|
|
|
<code><![CDATA[$manipulator->new_php_type]]></code>
|
|
|
|
<code><![CDATA[$manipulator->new_phpdoc_type]]></code>
|
|
|
|
<code><![CDATA[$manipulator->typehint_end]]></code>
|
|
|
|
<code><![CDATA[$manipulator->typehint_end]]></code>
|
|
|
|
<code><![CDATA[$manipulator->typehint_start]]></code>
|
|
|
|
<code><![CDATA[$manipulator->typehint_start]]></code>
|
|
|
|
<code>$preceding_semicolon_pos</code>
|
|
|
|
<code><![CDATA[$this->new_phpdoc_type]]></code>
|
|
|
|
<code><![CDATA[$this->new_psalm_type]]></code>
|
|
|
|
<code><![CDATA[$this->type_description]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
2023-10-10 00:46:28 +02:00
|
|
|
<file src="src/Psalm/Internal/Fork/Pool.php">
|
|
|
|
<PossiblyFalseArgument>
|
|
|
|
<code>$buffer</code>
|
|
|
|
</PossiblyFalseArgument>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$sockets</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Fork/PsalmRestarter.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$this->tmpIni]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/LanguageServer/Client/Progress/LegacyProgress.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>empty($message)</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2023-10-10 00:46:28 +02:00
|
|
|
</file>
|
2023-10-21 14:20:08 +02:00
|
|
|
<file src="src/Psalm/Internal/LanguageServer/ClientConfiguration.php">
|
|
|
|
<PossiblyUnusedProperty>
|
|
|
|
<code>$findUnusedVariables</code>
|
|
|
|
</PossiblyUnusedProperty>
|
|
|
|
</file>
|
2023-07-24 09:48:35 +02:00
|
|
|
<file src="src/Psalm/Internal/LanguageServer/LanguageClient.php">
|
|
|
|
<InvalidArrayAccess>
|
|
|
|
<code>$config</code>
|
|
|
|
</InvalidArrayAccess>
|
|
|
|
<InvalidArrayOffset>
|
|
|
|
<code>[$config]</code>
|
|
|
|
</InvalidArrayOffset>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/LanguageServer/LanguageServer.php">
|
|
|
|
<MixedAssignment>
|
|
|
|
<code>$result</code>
|
|
|
|
</MixedAssignment>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$clientConfiguration->TCPServerAddress]]></code>
|
|
|
|
<code><![CDATA[$clientConfiguration->TCPServerAddress]]></code>
|
|
|
|
<code><![CDATA[$clientConfiguration->onchangeLineLimit]]></code>
|
|
|
|
<code>empty($additional_info)</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2023-07-24 09:48:35 +02:00
|
|
|
</file>
|
2021-03-23 06:30:51 +01:00
|
|
|
<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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="src/Psalm/Internal/PhpVisitor/AssignmentMapVisitor.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$arg_var_id</code>
|
|
|
|
<code>$arg_var_id</code>
|
|
|
|
<code>$left_var_id</code>
|
|
|
|
<code>$left_var_id</code>
|
|
|
|
<code>$right_var_id</code>
|
|
|
|
<code>$right_var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
2021-03-23 06:30:51 +01:00
|
|
|
<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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$this->parser->parse(
|
|
|
|
$hacky_class_fix,
|
|
|
|
$error_handler,
|
|
|
|
)]]></code>
|
|
|
|
<code><![CDATA[$this->parser->parse(
|
|
|
|
$fake_class,
|
|
|
|
$error_handler,
|
|
|
|
)]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!strpos($doc_line_parts[1], '(')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$var_line_parts</code>
|
|
|
|
<code><![CDATA[$adaptation->newModifier]]></code>
|
|
|
|
<code>$class_name</code>
|
|
|
|
<code><![CDATA[$docblock_info->description]]></code>
|
|
|
|
<code><![CDATA[$docblock_info->inheritors]]></code>
|
|
|
|
<code><![CDATA[$docblock_info->yield]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$this->aliases->namespace]]></code>
|
|
|
|
<code><![CDATA[$this->aliases->namespace]]></code>
|
|
|
|
<code><![CDATA[$var_comment->line_number]]></code>
|
|
|
|
<code><![CDATA[$var_comment->type_end]]></code>
|
|
|
|
<code><![CDATA[$var_comment->type_start]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/PhpVisitor/Reflector/ExpressionResolver.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$fq_classlike_name</code>
|
|
|
|
<code>$string_value</code>
|
|
|
|
<code>$string_value</code>
|
|
|
|
<code>$string_value</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$skip_if_descendants</code>
|
|
|
|
<code>!$skip_if_descendants</code>
|
|
|
|
<code>$include_path</code>
|
|
|
|
<code>$path_to_file</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php">
|
2023-10-21 14:20:08 +02:00
|
|
|
<InvalidReturnStatement>
|
|
|
|
<code>$line_parts</code>
|
|
|
|
</InvalidReturnStatement>
|
|
|
|
<InvalidReturnType>
|
|
|
|
<code><![CDATA[array{string, string}&array<int<0, max>, string>]]></code>
|
|
|
|
</InvalidReturnType>
|
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
|
|
<code>$line_parts[0]</code>
|
|
|
|
<code>$line_parts[1]</code>
|
2021-03-23 06:30:51 +01:00
|
|
|
<code>$since_parts[1]</code>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockScanner.php">
|
2022-12-28 17:26:25 +01:00
|
|
|
<PossiblyUndefinedArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$source_param_string</code>
|
2022-12-28 17:26:25 +01:00
|
|
|
</PossiblyUndefinedArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$aliases->namespace]]></code>
|
|
|
|
<code><![CDATA[$classlike_storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$classlike_storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$docblock_info->description]]></code>
|
|
|
|
<code><![CDATA[$docblock_info->return_type_end]]></code>
|
|
|
|
<code><![CDATA[$docblock_info->return_type_line_number]]></code>
|
|
|
|
<code><![CDATA[$docblock_info->return_type_line_number]]></code>
|
|
|
|
<code><![CDATA[$docblock_info->return_type_start]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
<code>$template_types</code>
|
|
|
|
<code>$template_types</code>
|
|
|
|
<code>$template_types</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$stmt->stmts]]></code>
|
|
|
|
<code><![CDATA[!$this->aliases->namespace]]></code>
|
|
|
|
<code><![CDATA[!$this->aliases->namespace]]></code>
|
|
|
|
<code><![CDATA[$classlike_storage->template_types]]></code>
|
|
|
|
<code>$fq_classlike_name</code>
|
|
|
|
<code>$function_id</code>
|
|
|
|
<code>$function_id</code>
|
|
|
|
<code>$method_name_lc</code>
|
|
|
|
<code><![CDATA[$stmt->stmts]]></code>
|
|
|
|
<code><![CDATA[$stmt->stmts]]></code>
|
|
|
|
<code><![CDATA[$stmt->stmts]]></code>
|
|
|
|
<code><![CDATA[$stmt->stmts]]></code>
|
|
|
|
<code><![CDATA[$this->aliases->namespace]]></code>
|
|
|
|
<code><![CDATA[$this->aliases->namespace]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/PhpVisitor/Reflector/TypeHintResolver.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$type_string</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/PhpVisitor/ReflectorVisitor.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$this->aliases->uses_start]]></code>
|
|
|
|
<code><![CDATA[!$this->aliases->uses_start]]></code>
|
|
|
|
<code><![CDATA[!$this->skip_if_descendants]]></code>
|
|
|
|
<code><![CDATA[!$this->skip_if_descendants]]></code>
|
|
|
|
<code><![CDATA[$this->skip_if_descendants]]></code>
|
|
|
|
<code><![CDATA[$this->skip_if_descendants]]></code>
|
|
|
|
<code><![CDATA[$this->skip_if_descendants]]></code>
|
|
|
|
<code><![CDATA[$this->skip_if_descendants]]></code>
|
|
|
|
<code><![CDATA[$this->skip_if_descendants]]></code>
|
|
|
|
<code><![CDATA[strpos($docblock_issue->code_location->file_path, 'CoreGenericClasses.phpstub')]]></code>
|
|
|
|
<code><![CDATA[strpos($docblock_issue->code_location->file_path, 'CoreGenericFunctions.phpstub')]]></code>
|
|
|
|
<code><![CDATA[strpos($this->file_path, 'CoreGenericIterators.phpstub')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$offset_map</code>
|
|
|
|
<code><![CDATA[$this->end_change]]></code>
|
|
|
|
<code><![CDATA[$this->start_change]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="src/Psalm/Internal/PluginManager/ConfigFile.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$path</code>
|
|
|
|
<code>$explicit_path</code>
|
|
|
|
<code><![CDATA[$this->psalm_header]]></code>
|
|
|
|
<code><![CDATA[$this->psalm_tag_end_pos]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/PluginManager/PluginList.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$this->enabled_plugins]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Provider/ClassLikeStorageCacheProvider.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$root_cache_directory</code>
|
|
|
|
<code>$file_contents</code>
|
|
|
|
<code>$file_path</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Provider/FileReferenceCacheProvider.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$cache_directory</code>
|
|
|
|
<code>!$cache_directory</code>
|
|
|
|
<code>!$cache_directory</code>
|
|
|
|
<code>$cache_directory</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Provider/FileReferenceProvider.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$this->cache->getFileMapCache()]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Provider/FileStorageCacheProvider.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$root_cache_directory</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Provider/FunctionParamsProvider.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$result</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Provider/MethodReturnTypeProvider.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$called_method_name</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Provider/ParamsProvider/ArrayMultisortParamsProvider.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$extended_var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Provider/ParserCacheProvider.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$cache_directory</code>
|
|
|
|
<code>!$root_cache_directory</code>
|
|
|
|
<code>!$root_cache_directory</code>
|
|
|
|
<code>!$root_cache_directory</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Provider/ProjectCacheProvider.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$cache_directory</code>
|
|
|
|
<code>!$cache_directory</code>
|
|
|
|
<code><![CDATA[!$this->composer_lock_hash]]></code>
|
|
|
|
<code>$cache_directory</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Provider/ReturnTypeProvider/ArrayColumnReturnTypeProvider.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$key_column_name</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Provider/ReturnTypeProvider/ArrayFilterReturnTypeProvider.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$callable_extended_var_id</code>
|
|
|
|
<code><![CDATA[$statements_source->getTemplateTypeMap()]]></code>
|
|
|
|
<code><![CDATA[$statements_source->getTemplateTypeMap()]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
2022-12-13 21:40:19 +01:00
|
|
|
<file src="src/Psalm/Internal/Provider/ReturnTypeProvider/ArrayMapReturnTypeProvider.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUndefinedIntArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<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>
|
2022-12-13 21:40:19 +01:00
|
|
|
<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>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$method_name</code>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
|
|
</file>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="src/Psalm/Internal/Provider/ReturnTypeProvider/PdoStatementReturnTypeProvider.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$fetch_class_name</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Provider/ReturnTypeProvider/PdoStatementSetFetchMode.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$call_args</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Provider/StatementsProvider.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$existing_file_contents</code>
|
|
|
|
<code>$existing_file_contents</code>
|
|
|
|
<code>$existing_file_contents</code>
|
|
|
|
<code>$existing_statements</code>
|
|
|
|
<code>$existing_statements</code>
|
|
|
|
<code>$existing_statements</code>
|
|
|
|
<code>$existing_statements</code>
|
|
|
|
<code>$file_changes</code>
|
|
|
|
<code>$file_path</code>
|
|
|
|
<code><![CDATA[self::$parser->parse($file_contents, $error_handler)]]></code>
|
|
|
|
<code><![CDATA[self::$parser->parse($file_contents, $error_handler)]]></code>
|
|
|
|
<code><![CDATA[strpos($file_path, 'vendor')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Scanner/DocblockParser.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$first_line_padding</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Scanner/PhpStormMetaScanner.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$resolved_name</code>
|
|
|
|
<code>$mapped_type = $map[$offset_arg_value] ?? null</code>
|
|
|
|
<code>$mapped_type = $map[$offset_arg_value] ?? null</code>
|
|
|
|
<code><![CDATA[$mapped_type = $map[''] ?? null]]></code>
|
|
|
|
<code><![CDATA[$mapped_type = $map[''] ?? null]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Stubs/Generator/ClassLikeStubGenerator.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$method_storage->cased_name]]></code>
|
|
|
|
<code><![CDATA[$method_storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$storage->parent_class]]></code>
|
|
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Stubs/Generator/StubsGenerator.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$function_storage->cased_name]]></code>
|
|
|
|
<code><![CDATA[!$function_storage->cased_name]]></code>
|
|
|
|
<code><![CDATA[$function_storage->template_types]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Type/AssertionReconciler.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
2022-12-13 21:40:19 +01:00
|
|
|
<file src="src/Psalm/Internal/Type/Comparator/AtomicTypeComparator.php">
|
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>
|
2022-12-13 21:40:19 +01:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$class_name</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code>$calling_method_id</code>
|
|
|
|
<code><![CDATA[$container_type_part->params]]></code>
|
|
|
|
<code>$file_name</code>
|
|
|
|
<code>$file_name</code>
|
|
|
|
<code>$input_variadic_param_idx</code>
|
|
|
|
<code>$member_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Type/Comparator/GenericTypeComparator.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!($container_type_params_covariant[$i] ?? false)</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Type/Comparator/ObjectComparator.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$intersection_container_type_lower</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Type/NegatedAssertionReconciler.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-10-03 10:45:36 +02:00
|
|
|
</file>
|
2022-12-13 21:40:19 +01:00
|
|
|
<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>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$properties[0]</code>
|
|
|
|
<code>$properties[0]</code>
|
|
|
|
<code>$properties[0]</code>
|
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code><![CDATA[strpos($key, '[')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Type/SimpleNegatedAssertionReconciler.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$count</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$key</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
<code>$var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/Type/TemplateInferredTypeReplacer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$classlike_storage->template_extended_params]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-13 21:40:19 +01:00
|
|
|
</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>
|
|
|
|
</ImpureMethodCall>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$bracket_pos = strpos($input_key, '<')]]></code>
|
|
|
|
<code><![CDATA[$bracket_pos = strpos($key, '<')]]></code>
|
|
|
|
<code>$input_template_types</code>
|
|
|
|
<code><![CDATA[empty($class_storage->template_extended_params[$container_class])]]></code>
|
|
|
|
<code><![CDATA[empty($classlike_storage->template_extended_params[$base_type->as_type->value])]]></code>
|
|
|
|
<code><![CDATA[empty($classlike_storage->template_extended_params[$base_type->value])]]></code>
|
|
|
|
<code><![CDATA[strpos($key, '&')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-10-10 12:53:13 +02:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$combination->class_string_types]]></code>
|
|
|
|
<code><![CDATA[!$combination->floats]]></code>
|
|
|
|
<code><![CDATA[!$combination->ints]]></code>
|
|
|
|
<code><![CDATA[!$combination->named_object_types]]></code>
|
|
|
|
<code><![CDATA[!$combination->strings]]></code>
|
|
|
|
<code><![CDATA[$combination->array_counts]]></code>
|
|
|
|
<code><![CDATA[$combination->array_min_counts]]></code>
|
|
|
|
<code><![CDATA[$combination->array_min_counts]]></code>
|
|
|
|
<code><![CDATA[$combination->class_string_types]]></code>
|
|
|
|
<code><![CDATA[$combination->class_string_types]]></code>
|
|
|
|
<code><![CDATA[$combination->floats]]></code>
|
|
|
|
<code><![CDATA[$combination->ints]]></code>
|
|
|
|
<code><![CDATA[$combination->ints]]></code>
|
|
|
|
<code><![CDATA[$combination->ints]]></code>
|
|
|
|
<code><![CDATA[$combination->named_object_types]]></code>
|
|
|
|
<code><![CDATA[$combination->strings]]></code>
|
|
|
|
<code><![CDATA[$combination->strings]]></code>
|
|
|
|
<code><![CDATA[$combination->strings]]></code>
|
|
|
|
<code><![CDATA[$combination->strings]]></code>
|
|
|
|
<code><![CDATA[$combination->value_types['string'] instanceof TNonFalsyString
|
|
|
|
? $type->value
|
|
|
|
: $type->value !== '']]></code>
|
|
|
|
<code>$shared_classlikes</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
2022-12-13 21:40:19 +01:00
|
|
|
<file src="src/Psalm/Internal/Type/TypeExpander.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<InvalidArgument>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$fallback_params</code>
|
|
|
|
</InvalidArgument>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$container_class_storage->template_types]]></code>
|
|
|
|
<code>$params</code>
|
|
|
|
<code>$parent_class</code>
|
|
|
|
<code>$self_class</code>
|
|
|
|
<code>$self_class</code>
|
|
|
|
<code>$self_class</code>
|
|
|
|
<code>$self_class</code>
|
|
|
|
<code>$self_class</code>
|
|
|
|
<code>$self_class</code>
|
|
|
|
<code>$static_class_type</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-13 21:40:19 +01:00
|
|
|
</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>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$const_name</code>
|
|
|
|
<code>$const_name</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$extra_params</code>
|
|
|
|
<code><![CDATA[strpos($parse_tree->value, '::')]]></code>
|
|
|
|
<code><![CDATA[strpos($property_branch->value, '::')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
2022-12-13 21:40:19 +01:00
|
|
|
<file src="src/Psalm/Internal/Type/TypeTokenizer.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyInvalidArrayOffset>
|
2022-12-13 21:40:19 +01:00
|
|
|
<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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$parent_fqcln</code>
|
|
|
|
<code>$self_fqcln</code>
|
|
|
|
<code><![CDATA[strpos($string_type_token[0], '$')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Internal/TypeVisitor/TypeChecker.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$fq_classlike_name</code>
|
|
|
|
<code><![CDATA[$class_storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$class_storage->template_types]]></code>
|
|
|
|
<code><![CDATA[$this->calling_method_id]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Issue/ArgumentIssue.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$function_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Issue/MixedArgument.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$function_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Issue/MixedArgumentTypeCoercion.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$function_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/IssueBuffer.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!$report_options->output_path]]></code>
|
|
|
|
<code>$parent_issue_type</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Report/ByIssueLevelAndTypeReport.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$issue_data->other_references]]></code>
|
|
|
|
<code><![CDATA[$issue_data->taint_trace]]></code>
|
|
|
|
<code><![CDATA[ini_get('xdebug.file_link_format')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Report/ConsoleReport.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$issue_data->other_references]]></code>
|
|
|
|
<code><![CDATA[$issue_data->taint_trace]]></code>
|
|
|
|
<code><![CDATA[ini_get('xdebug.file_link_format')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Report/PhpStormReport.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[$issue_data->taint_trace]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-12-13 21:40:19 +01:00
|
|
|
</file>
|
2022-11-04 19:04:23 +01:00
|
|
|
<file src="src/Psalm/Storage/ClassConstantStorage.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<MutableDependency>
|
2022-11-04 19:04:23 +01:00
|
|
|
<code>CustomMetadataTrait</code>
|
|
|
|
</MutableDependency>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Storage/FunctionLikeParameter.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<ImpureMethodCall>
|
2022-11-04 19:04:23 +01:00
|
|
|
<code>traverse</code>
|
|
|
|
<code>traverse</code>
|
|
|
|
<code>traverse</code>
|
|
|
|
<code>traverse</code>
|
|
|
|
</ImpureMethodCall>
|
|
|
|
</file>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="src/Psalm/Storage/Possibilities.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$this_var_id</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Type.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$namespace</code>
|
|
|
|
<code>$namespace</code>
|
|
|
|
<code>$namespace</code>
|
|
|
|
<code><![CDATA[strpos($value, '\\')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</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>classOrInterfaceExists</code>
|
|
|
|
<code>classOrInterfaceExists</code>
|
|
|
|
<code>classOrInterfaceExists</code>
|
|
|
|
<code>getMappedGenericTypeParams</code>
|
|
|
|
<code>interfaceExtends</code>
|
|
|
|
<code>interfaceExtends</code>
|
|
|
|
<code>interfaceExtends</code>
|
2022-11-04 19:04:23 +01:00
|
|
|
<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>
|
2022-11-04 19:04:23 +01:00
|
|
|
<code>$value</code>
|
|
|
|
</ReferenceConstraintViolation>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[strpos($value, '-')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$params</code>
|
|
|
|
<code>$params</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-10-10 12:53:13 +02:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!($container_type_params_covariant[$offset] ?? true)</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</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/TClassString.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<ImpureMethodCall>
|
2022-10-10 12:53:13 +02:00
|
|
|
<code>replace</code>
|
|
|
|
</ImpureMethodCall>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$namespace</code>
|
|
|
|
<code>$namespace</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-10-10 12:53:13 +02:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="src/Psalm/Type/Atomic/TClosure.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$intersection</code>
|
|
|
|
<code>!$intersection</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
2022-10-10 12:53:13 +02:00
|
|
|
<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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="src/Psalm/Type/Atomic/TGenericObject.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$intersection</code>
|
|
|
|
<code>!$intersection</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Type/Atomic/TIterable.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$intersection</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</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
|
|
|
<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>
|
2022-12-13 21:40:19 +01:00
|
|
|
<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>
|
2022-12-13 21:40:19 +01:00
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
|
|
</file>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="src/Psalm/Type/Atomic/TLiteralClassString.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$namespace</code>
|
|
|
|
<code>$namespace</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Type/Atomic/TNamedObject.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$intersection</code>
|
|
|
|
<code>$intersection</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$intersection</code>
|
|
|
|
<code>!$intersection</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-10-10 12:53:13 +02:00
|
|
|
</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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="src/Psalm/Type/Atomic/TTemplateParam.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$intersection</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
2022-10-10 12:53:13 +02:00
|
|
|
<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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[strpos($type_string, '(')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-10-03 10:45:36 +02:00
|
|
|
</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>
|
2022-12-13 21:40:19 +01:00
|
|
|
<code>$const_name</code>
|
2021-03-23 06:30:51 +01:00
|
|
|
</PossiblyUndefinedIntArrayOffset>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[!strpos($key, '$')]]></code>
|
|
|
|
<code><![CDATA[!strpos($key, '[')]]></code>
|
|
|
|
<code>$array_key_offset</code>
|
|
|
|
<code>$failed_reconciliation</code>
|
|
|
|
<code><![CDATA[strpos($base_key, '::')]]></code>
|
|
|
|
<code><![CDATA[strpos($key, '::')]]></code>
|
|
|
|
<code><![CDATA[strpos($nk, '->')]]></code>
|
|
|
|
<code><![CDATA[strpos($nk, '[')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-03-23 06:30:51 +01:00
|
|
|
</file>
|
2022-11-04 19:04:23 +01:00
|
|
|
<file src="src/Psalm/Type/TypeNode.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<ReferenceConstraintViolation>
|
2022-11-04 19:04:23 +01:00
|
|
|
<code>$node</code>
|
|
|
|
</ReferenceConstraintViolation>
|
|
|
|
</file>
|
|
|
|
<file src="src/Psalm/Type/TypeVisitor.php">
|
2022-12-21 04:59:35 +01:00
|
|
|
<ImpureMethodCall>
|
2022-11-04 19:04:23 +01:00
|
|
|
<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>
|
2022-11-04 19:04:23 +01:00
|
|
|
<code>traverse</code>
|
|
|
|
<code>traverse</code>
|
|
|
|
<code>traverseArray</code>
|
|
|
|
<code>traverseArray</code>
|
|
|
|
</ImpureMethodCall>
|
2022-12-21 04:59:35 +01:00
|
|
|
<MoreSpecificReturnType>
|
2022-12-13 21:40:19 +01:00
|
|
|
<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>
|
2022-12-13 21:40:19 +01:00
|
|
|
</PossiblyUndefinedStringArrayOffset>
|
2022-12-21 04:59:35 +01:00
|
|
|
<PossiblyUnusedMethod>
|
2022-10-03 10:45:36 +02:00
|
|
|
<code>allFloatLiterals</code>
|
|
|
|
<code>allFloatLiterals</code>
|
2022-12-28 17:26:25 +01:00
|
|
|
<code>hasLowercaseString</code>
|
|
|
|
<code>hasLowercaseString</code>
|
2022-10-03 10:45:36 +02:00
|
|
|
</PossiblyUnusedMethod>
|
2024-01-15 10:33:46 +01:00
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>!$php_type</code>
|
|
|
|
<code><![CDATA[$other_type->exact_id]]></code>
|
|
|
|
<code><![CDATA[$other_type->id]]></code>
|
|
|
|
<code><![CDATA[$this->exact_id]]></code>
|
|
|
|
<code><![CDATA[$this->exact_id]]></code>
|
|
|
|
<code><![CDATA[$this->id]]></code>
|
|
|
|
<code><![CDATA[$this->id]]></code>
|
|
|
|
<code><![CDATA[strpos($type, ' as ')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2022-10-03 10:45:36 +02:00
|
|
|
</file>
|
2024-01-15 13:45:08 +01:00
|
|
|
<file src="tests/Config/PluginListTest.php">
|
2024-01-15 13:47:06 +01:00
|
|
|
<InvalidArgument>
|
|
|
|
<code><![CDATA[$this->composer_lock]]></code>
|
|
|
|
<code><![CDATA[$this->composer_lock]]></code>
|
|
|
|
<code><![CDATA[$this->composer_lock]]></code>
|
|
|
|
<code><![CDATA[$this->composer_lock]]></code>
|
|
|
|
<code><![CDATA[$this->composer_lock]]></code>
|
|
|
|
<code><![CDATA[$this->composer_lock]]></code>
|
|
|
|
<code><![CDATA[$this->composer_lock]]></code>
|
|
|
|
<code><![CDATA[$this->composer_lock]]></code>
|
|
|
|
<code><![CDATA[$this->composer_lock]]></code>
|
|
|
|
<code><![CDATA[$this->composer_lock]]></code>
|
2024-01-15 13:45:08 +01:00
|
|
|
<code><![CDATA[$this->config_file]]></code>
|
|
|
|
<code><![CDATA[$this->config_file]]></code>
|
|
|
|
<code><![CDATA[$this->config_file]]></code>
|
|
|
|
<code><![CDATA[$this->config_file]]></code>
|
|
|
|
<code><![CDATA[$this->config_file]]></code>
|
|
|
|
<code><![CDATA[$this->config_file]]></code>
|
|
|
|
<code><![CDATA[$this->config_file]]></code>
|
|
|
|
<code><![CDATA[$this->config_file]]></code>
|
|
|
|
<code><![CDATA[$this->config_file]]></code>
|
2024-01-15 13:47:06 +01:00
|
|
|
</InvalidArgument>
|
2024-01-15 13:45:08 +01:00
|
|
|
</file>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="tests/DocumentationTest.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[strpos($error_message, 'ArrayOffset')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="tests/EndToEnd/PsalmEndToEndTest.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$level</code>
|
|
|
|
<code>$php_version</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
|
|
|
<file src="tests/FileManipulation/FileManipulationTestCase.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code><![CDATA[strpos(static::class, 'Unnecessary')]]></code>
|
|
|
|
<code><![CDATA[strpos(static::class, 'Unused')]]></code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
|
|
|
</file>
|
2023-10-21 14:20:08 +02:00
|
|
|
<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>
|
2024-01-15 10:33:46 +01:00
|
|
|
<file src="tests/TypeParseTest.php">
|
|
|
|
<RiskyTruthyFalsyComparison>
|
|
|
|
<code>$param_type_1</code>
|
|
|
|
<code>$param_type_2</code>
|
|
|
|
<code>$param_type_3</code>
|
|
|
|
<code>$param_type_4</code>
|
|
|
|
<code>$return_type</code>
|
|
|
|
</RiskyTruthyFalsyComparison>
|
2021-11-04 00:12:10 +01:00
|
|
|
</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>
|
2021-11-04 00:12:10 +01:00
|
|
|
</PossiblyUndefinedStringArrayOffset>
|
|
|
|
</file>
|
2021-03-23 06:30:51 +01:00
|
|
|
</files>
|