mirror of
https://github.com/danog/psalm.git
synced 2024-12-11 16:59:45 +01:00
6b405937ab
Fixes vimeo/psalm#9713
2361 lines
104 KiB
XML
2361 lines
104 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<files psalm-version="5.x-dev@ba4e312594006059b0d9afb0c5ebeea649a59112">
|
|
<file src="vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrowFunction.php">
|
|
<PossiblyUndefinedStringArrayOffset>
|
|
<code><![CDATA[$subNodes['expr']]]></code>
|
|
</PossiblyUndefinedStringArrayOffset>
|
|
</file>
|
|
<file src="examples/TemplateChecker.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$comment_block->tags['variablesfrom'][0]]]></code>
|
|
<code><![CDATA[$matches[1]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
</file>
|
|
<file src="examples/TemplateScanner.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$comment_block->tags['variablesfrom'][0]]]></code>
|
|
<code><![CDATA[$matches[1]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
</file>
|
|
<file src="examples/plugins/FunctionCasingChecker.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$function_storage->cased_name]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="examples/plugins/StringChecker.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$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>
|
|
<file src="src/Psalm/Codebase.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$const_name]]></code>
|
|
<code><![CDATA[$const_name]]></code>
|
|
<code><![CDATA[$symbol_name]]></code>
|
|
<code><![CDATA[$symbol_parts[1]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$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><![CDATA[$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>
|
|
<code><![CDATA[strpos($symbol, '()')]]></code>
|
|
<code><![CDATA[strpos($symbol, '()')]]></code>
|
|
<code><![CDATA[strpos($symbol, '()')]]></code>
|
|
<code><![CDATA[strpos($symbol, '::')]]></code>
|
|
<code><![CDATA[strpos($symbol, '::')]]></code>
|
|
<code><![CDATA[strpos($symbol, '::')]]></code>
|
|
<code><![CDATA[strpos($symbol, '\\')]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Config.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$composer_json]]></code>
|
|
<code><![CDATA[!$config_path]]></code>
|
|
<code><![CDATA[!$file_path]]></code>
|
|
<code><![CDATA[!strpos($issue_type, 'Reference')]]></code>
|
|
<code><![CDATA[$cwd]]></code>
|
|
<code><![CDATA[$dir]]></code>
|
|
<code><![CDATA[$e->function_id]]></code>
|
|
<code><![CDATA[$igbinary_version = phpversion('igbinary')]]></code>
|
|
<code><![CDATA[$issue_handler_children]]></code>
|
|
<code><![CDATA[$parent_issue_type]]></code>
|
|
<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><![CDATA[$suggested_dir]]></code>
|
|
<code><![CDATA[strpos($issue->file_path, 'stub')]]></code>
|
|
<code><![CDATA[strpos($issue->file_path, 'vendor')]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Config/FileFilter.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[explode('::', $method_id)[1]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$directory_path]]></code>
|
|
<code><![CDATA[!$file_path]]></code>
|
|
<code><![CDATA[!$glob_directory_path]]></code>
|
|
<code><![CDATA[!$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><![CDATA[glob($parts[0], GLOB_NOSORT)]]></code>
|
|
<code><![CDATA[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>
|
|
</file>
|
|
<file src="src/Psalm/ErrorBaseline.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$matches[1]]]></code>
|
|
<code><![CDATA[$matches[2]]]></code>
|
|
<code><![CDATA[$matches[3]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Algebra.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$creating_conditional_id]]></code>
|
|
<code><![CDATA[$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>
|
|
<file src="src/Psalm/Internal/Analyzer/ClassAnalyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$comments[0]]]></code>
|
|
<code><![CDATA[$property_name]]></code>
|
|
<code><![CDATA[$stmt->props[0]]]></code>
|
|
<code><![CDATA[$uninitialized_variables[0]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$declaring_property_class]]></code>
|
|
<code><![CDATA[!$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><![CDATA[$class_template_params]]></code>
|
|
<code><![CDATA[$end_type->initialized_class]]></code>
|
|
<code><![CDATA[$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>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/ClassLikeAnalyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$property_name]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$appearing_property_class]]></code>
|
|
<code><![CDATA[!$context->self]]></code>
|
|
<code><![CDATA[!$declaring_property_class]]></code>
|
|
<code><![CDATA[$context->self]]></code>
|
|
<code><![CDATA[$parent_storage->template_types]]></code>
|
|
<code><![CDATA[$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><![CDATA[!$original_type]]></code>
|
|
<code><![CDATA[!$var_comment->description]]></code>
|
|
<code><![CDATA[!$var_comment->var_id]]></code>
|
|
<code><![CDATA[!$var_type_tokens]]></code>
|
|
<code><![CDATA[$brackets]]></code>
|
|
<code><![CDATA[$template_type_map]]></code>
|
|
<code><![CDATA[$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><![CDATA[$namespace_name]]></code>
|
|
<code><![CDATA[$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><![CDATA[$namespace]]></code>
|
|
<code><![CDATA[$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><![CDATA[$class_template_params]]></code>
|
|
<code><![CDATA[$context->self]]></code>
|
|
<code><![CDATA[$context->self]]></code>
|
|
<code><![CDATA[$fq_class_name]]></code>
|
|
<code><![CDATA[$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><![CDATA[$cased_method_id]]></code>
|
|
<code><![CDATA[$cased_method_id]]></code>
|
|
<code><![CDATA[$cased_method_id]]></code>
|
|
<code><![CDATA[$cased_method_id]]></code>
|
|
<code><![CDATA[$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><![CDATA[$context_self]]></code>
|
|
<code><![CDATA[$hash]]></code>
|
|
<code><![CDATA[$namespace]]></code>
|
|
<code><![CDATA[$parent_fqcln]]></code>
|
|
<code><![CDATA[$parent_fqcln]]></code>
|
|
<code><![CDATA[$storage->cased_name]]></code>
|
|
<code><![CDATA[$storage->template_types]]></code>
|
|
<code><![CDATA[$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><![CDATA[!$calling_method_id]]></code>
|
|
<code><![CDATA[!$context->self]]></code>
|
|
<code><![CDATA[$appearing_method_class]]></code>
|
|
<code><![CDATA[$appearing_method_class]]></code>
|
|
<code><![CDATA[$context->self]]></code>
|
|
<code><![CDATA[$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>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/ProjectAnalyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$destination_parts[1]]]></code>
|
|
<code><![CDATA[$destination_parts[1]]]></code>
|
|
<code><![CDATA[$destination_parts[1]]]></code>
|
|
<code><![CDATA[$php_minor_version]]></code>
|
|
<code><![CDATA[$source_parts[1]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$this_context->self]]></code>
|
|
<code><![CDATA[$destination_pos = strpos($destination, '*')]]></code>
|
|
<code><![CDATA[$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>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Block/ForAnalyzer.php">
|
|
<ArgumentTypeCoercion>
|
|
<code><![CDATA[$stmt->cond]]></code>
|
|
</ArgumentTypeCoercion>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$for_context->branch_point]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Block/ForeachAnalyzer.php">
|
|
<ConflictingReferenceConstraint>
|
|
<code><![CDATA[if (AtomicTypeComparator::isContainedBy(]]></code>
|
|
<code><![CDATA[if (AtomicTypeComparator::isContainedBy(]]></code>
|
|
</ConflictingReferenceConstraint>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$var_comment->var_id]]></code>
|
|
<code><![CDATA[!$var_comment->var_id]]></code>
|
|
<code><![CDATA[$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><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$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>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Block/SwitchAnalyzer.php">
|
|
<InvalidPropertyAssignmentValue>
|
|
<code><![CDATA[$context->assigned_var_ids += $switch_scope->new_assigned_var_ids]]></code>
|
|
</InvalidPropertyAssignmentValue>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$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><![CDATA[$switch_var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Block/SwitchCaseAnalyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<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>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$case_context->branch_point]]></code>
|
|
<code><![CDATA[$nested_or_options]]></code>
|
|
<code><![CDATA[$switch_var_id]]></code>
|
|
<code><![CDATA[$switch_var_id]]></code>
|
|
<code><![CDATA[$switch_var_id]]></code>
|
|
<code><![CDATA[$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><![CDATA[$var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/AssertionFinder.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<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>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$var_name]]></code>
|
|
<code><![CDATA[!$var_type]]></code>
|
|
<code><![CDATA[!strpos($first_var_name, '->')]]></code>
|
|
<code><![CDATA[!strpos($first_var_name, '[')]]></code>
|
|
<code><![CDATA[$array_root]]></code>
|
|
<code><![CDATA[$count_equality_position]]></code>
|
|
<code><![CDATA[$count_equality_position]]></code>
|
|
<code><![CDATA[$count_equality_position]]></code>
|
|
<code><![CDATA[$count_inequality_position]]></code>
|
|
<code><![CDATA[$count_inequality_position]]></code>
|
|
<code><![CDATA[$count_inequality_position]]></code>
|
|
<code><![CDATA[$false_position]]></code>
|
|
<code><![CDATA[$false_position]]></code>
|
|
<code><![CDATA[$first_var_name]]></code>
|
|
<code><![CDATA[$first_var_name]]></code>
|
|
<code><![CDATA[$first_var_name]]></code>
|
|
<code><![CDATA[$first_var_name]]></code>
|
|
<code><![CDATA[$first_var_name]]></code>
|
|
<code><![CDATA[$first_var_name]]></code>
|
|
<code><![CDATA[$first_var_name]]></code>
|
|
<code><![CDATA[$first_var_name]]></code>
|
|
<code><![CDATA[$first_var_name]]></code>
|
|
<code><![CDATA[$first_var_name]]></code>
|
|
<code><![CDATA[$first_var_name]]></code>
|
|
<code><![CDATA[$first_var_name]]></code>
|
|
<code><![CDATA[$first_var_name]]></code>
|
|
<code><![CDATA[$first_var_name_in_array_argument]]></code>
|
|
<code><![CDATA[$get_debug_type_position]]></code>
|
|
<code><![CDATA[$get_debug_type_position]]></code>
|
|
<code><![CDATA[$getclass_position]]></code>
|
|
<code><![CDATA[$getclass_position]]></code>
|
|
<code><![CDATA[$gettype_position]]></code>
|
|
<code><![CDATA[$gettype_position]]></code>
|
|
<code><![CDATA[$if_false_assertions]]></code>
|
|
<code><![CDATA[$if_true_assertions]]></code>
|
|
<code><![CDATA[$inferior_value_position]]></code>
|
|
<code><![CDATA[$other_var_name]]></code>
|
|
<code><![CDATA[$superior_value_position]]></code>
|
|
<code><![CDATA[$this_class_name]]></code>
|
|
<code><![CDATA[$this_class_name]]></code>
|
|
<code><![CDATA[$this_class_name]]></code>
|
|
<code><![CDATA[$true_position]]></code>
|
|
<code><![CDATA[$true_position]]></code>
|
|
<code><![CDATA[$typed_value_position]]></code>
|
|
<code><![CDATA[$typed_value_position]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name]]></code>
|
|
<code><![CDATA[$var_name_left]]></code>
|
|
<code><![CDATA[$var_name_right]]></code>
|
|
<code><![CDATA[$var_type]]></code>
|
|
<code><![CDATA[$var_type]]></code>
|
|
<code><![CDATA[$var_type]]></code>
|
|
<code><![CDATA[self::hasReconcilableNonEmptyCountEqualityCheck($conditional)]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/ArrayAssignmentAnalyzer.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$parent_var_id]]></code>
|
|
<code><![CDATA[$object_id]]></code>
|
|
<code><![CDATA[$parent_var_id]]></code>
|
|
<code><![CDATA[$parent_var_id]]></code>
|
|
<code><![CDATA[$root_var_id]]></code>
|
|
<code><![CDATA[$root_var_id]]></code>
|
|
<code><![CDATA[$root_var_id]]></code>
|
|
<code><![CDATA[$root_var_id]]></code>
|
|
<code><![CDATA[$root_var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/InstancePropertyAssignmentAnalyzer.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$context->self]]></code>
|
|
<code><![CDATA[!$var_id]]></code>
|
|
<code><![CDATA[$appearing_property_class]]></code>
|
|
<code><![CDATA[$class_template_params]]></code>
|
|
<code><![CDATA[$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><![CDATA[$declaring_property_class]]></code>
|
|
<code><![CDATA[$property_storage->getter_method]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_property_id]]></code>
|
|
<code><![CDATA[$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>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/StaticPropertyAssignmentAnalyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$new_property_name]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php">
|
|
<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><![CDATA[$assign_value_id]]></code>
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
<code><![CDATA[$extended_var_id]]></code>
|
|
<code><![CDATA[$extended_var_id]]></code>
|
|
<code><![CDATA[$extended_var_id]]></code>
|
|
<code><![CDATA[$extended_var_id]]></code>
|
|
<code><![CDATA[$extended_var_id]]></code>
|
|
<code><![CDATA[$list_var_id]]></code>
|
|
<code><![CDATA[$list_var_id]]></code>
|
|
<code><![CDATA[$list_var_id]]></code>
|
|
<code><![CDATA[$prop_name]]></code>
|
|
<code><![CDATA[$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><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
<UnsupportedPropertyReferenceUsage>
|
|
<code><![CDATA[$context->vars_in_scope[$lhs_var_id] = &$context->vars_in_scope[$rhs_var_id]]]></code>
|
|
</UnsupportedPropertyReferenceUsage>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/AndAnalyzer.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$statements_analyzer->getTemplateTypeMap()]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$invalid_left_messages[0]]]></code>
|
|
<code><![CDATA[$invalid_right_messages[0]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/OrAnalyzer.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$context->branch_point]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php">
|
|
<ComplexMethod>
|
|
<code><![CDATA[verifyType]]></code>
|
|
</ComplexMethod>
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$method_name]]></code>
|
|
<code><![CDATA[$parts[1]]]></code>
|
|
<code><![CDATA[explode('::', $cased_method_id)[1]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$container_class]]></code>
|
|
<code><![CDATA[$cased_method_id]]></code>
|
|
<code><![CDATA[$cased_method_id]]></code>
|
|
<code><![CDATA[$cased_method_id]]></code>
|
|
<code><![CDATA[$cased_method_id]]></code>
|
|
<code><![CDATA[$cased_method_id]]></code>
|
|
<code><![CDATA[$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><![CDATA[$self_fq_class_name]]></code>
|
|
<code><![CDATA[$static_fq_class_name]]></code>
|
|
<code><![CDATA[$var_id]]></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><![CDATA[$cased_method_id]]></code>
|
|
<code><![CDATA[$cased_method_id]]></code>
|
|
<code><![CDATA[$cased_method_id]]></code>
|
|
<code><![CDATA[$cased_method_id]]></code>
|
|
<code><![CDATA[$cased_method_id]]></code>
|
|
<code><![CDATA[$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><![CDATA[$function_params]]></code>
|
|
<code><![CDATA[$function_params]]></code>
|
|
<code><![CDATA[$function_params]]></code>
|
|
<code><![CDATA[$function_storage->template_types]]></code>
|
|
<code><![CDATA[$method_id]]></code>
|
|
<code><![CDATA[$method_id]]></code>
|
|
<code><![CDATA[$method_id]]></code>
|
|
<code><![CDATA[$method_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[empty($statements_analyzer->getFQCLN())]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArrayFunctionArgumentsAnalyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$args[0]]]></code>
|
|
<code><![CDATA[$args[0]]]></code>
|
|
<code><![CDATA[$args[1]]]></code>
|
|
<code><![CDATA[$method_name]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$container_class]]></code>
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/ClassTemplateParamCollector.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$template_types]]></code>
|
|
<code><![CDATA[!$template_types]]></code>
|
|
<code><![CDATA[$class_storage->template_types]]></code>
|
|
<code><![CDATA[$method_name]]></code>
|
|
<code><![CDATA[$overridden_template_types]]></code>
|
|
<code><![CDATA[$static_class_storage->template_extended_params]]></code>
|
|
<code><![CDATA[$static_class_storage->template_types]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php">
|
|
<PossiblyNullArgument>
|
|
<code><![CDATA[$function_name]]></code>
|
|
<code><![CDATA[$function_name]]></code>
|
|
</PossiblyNullArgument>
|
|
<PossiblyNullPropertyFetch>
|
|
<code><![CDATA[$stmt->getArgs()[0]->value]]></code>
|
|
</PossiblyNullPropertyFetch>
|
|
<PossiblyUndefinedArrayOffset>
|
|
<code><![CDATA[$stmt->getArgs()[0]]]></code>
|
|
</PossiblyUndefinedArrayOffset>
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$parts[1]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<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>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallReturnTypeFetcher.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$method]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<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><![CDATA[$lhs_var_id]]></code>
|
|
<code><![CDATA[$mixin_class_template_params]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/ExistingAtomicMethodCallAnalyzer.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$class_template_params]]></code>
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
<code><![CDATA[$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><![CDATA[$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><![CDATA[$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><![CDATA[$appearing_method_name]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MissingMethodCallHandler.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$found_generic_params]]></code>
|
|
<code><![CDATA[$found_generic_params]]></code>
|
|
<code><![CDATA[$found_generic_params]]></code>
|
|
<code><![CDATA[$found_generic_params]]></code>
|
|
<code><![CDATA[$found_generic_params]]></code>
|
|
<code><![CDATA[$found_generic_params]]></code>
|
|
<code><![CDATA[$intersection_method_id]]></code>
|
|
<code><![CDATA[$intersection_method_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/MethodCallAnalyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<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>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$statements_analyzer->getFQCLN()]]></code>
|
|
<code><![CDATA[$lhs_var_id]]></code>
|
|
<code><![CDATA[$lhs_var_id]]></code>
|
|
<code><![CDATA[$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><![CDATA[$path_to_file]]></code>
|
|
<code><![CDATA[$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><![CDATA[$fq_class_name]]></code>
|
|
<code><![CDATA[$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><![CDATA[$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><![CDATA[!$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>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Call/StaticMethod/ExistingAtomicStaticCallAnalyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$new_method_name]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$context->self]]></code>
|
|
<code><![CDATA[$context->self]]></code>
|
|
<code><![CDATA[$context->self]]></code>
|
|
<code><![CDATA[$context->self]]></code>
|
|
<code><![CDATA[$found_generic_params]]></code>
|
|
<code><![CDATA[$found_generic_params]]></code>
|
|
<code><![CDATA[$self_class_storage->template_extended_params]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/CallAnalyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$callable_arg->items[0]]]></code>
|
|
<code><![CDATA[$callable_arg->items[1]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$arg_var_id]]></code>
|
|
<code><![CDATA[$arg_var_id]]></code>
|
|
<code><![CDATA[$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>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/ClassConstAnalyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$new_const_name]]></code>
|
|
<code><![CDATA[$new_const_name]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<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><![CDATA[!$lhs_var_name]]></code>
|
|
<code><![CDATA[!$object_id]]></code>
|
|
<code><![CDATA[!$object_id]]></code>
|
|
<code><![CDATA[!$this_class_name]]></code>
|
|
<code><![CDATA[$object_id]]></code>
|
|
<code><![CDATA[$property_root]]></code>
|
|
<code><![CDATA[$resolved_name]]></code>
|
|
<code><![CDATA[$resolved_name]]></code>
|
|
<code><![CDATA[$root_var_id]]></code>
|
|
<code><![CDATA[$this_class_name]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/ArrayFetchAnalyzer.php">
|
|
<ReferenceConstraintViolation>
|
|
<code><![CDATA[$stmt_type]]></code>
|
|
<code><![CDATA[$stmt_type]]></code>
|
|
<code><![CDATA[$stmt_type]]></code>
|
|
</ReferenceConstraintViolation>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$dim_var_id]]></code>
|
|
<code><![CDATA[$dim_var_id]]></code>
|
|
<code><![CDATA[$extended_var_id]]></code>
|
|
<code><![CDATA[$extended_var_id]]></code>
|
|
<code><![CDATA[$keyed_array_var_id]]></code>
|
|
<code><![CDATA[$keyed_array_var_id]]></code>
|
|
<code><![CDATA[$keyed_array_var_id]]></code>
|
|
<code><![CDATA[$keyed_array_var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/AtomicPropertyFetchAnalyzer.php">
|
|
<ReferenceConstraintViolation>
|
|
<code><![CDATA[$stmt_type]]></code>
|
|
</ReferenceConstraintViolation>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$context->self]]></code>
|
|
<code><![CDATA[$context->self]]></code>
|
|
<code><![CDATA[$declaring_property_class]]></code>
|
|
<code><![CDATA[$declaring_property_class]]></code>
|
|
<code><![CDATA[$property_class_storage->template_types]]></code>
|
|
<code><![CDATA[$property_class_storage->template_types]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_property_id]]></code>
|
|
<code><![CDATA[$var_property_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/InstancePropertyFetchAnalyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$invalid_fetch_types[0]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$prop_name]]></code>
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
<code><![CDATA[$context->calling_method_id]]></code>
|
|
<code><![CDATA[$declaring_property_class]]></code>
|
|
<code><![CDATA[$stmt_var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/StaticPropertyFetchAnalyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$new_property_name]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$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><![CDATA[$string_type]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/VariableFetchAnalyzer.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$branch_point]]></code>
|
|
<code><![CDATA[$branch_point]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/IncDecExpressionAnalyzer.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/IncludeAnalyzer.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$evaled_path]]></code>
|
|
<code><![CDATA[!$var_id]]></code>
|
|
<code><![CDATA[$include_path]]></code>
|
|
<code><![CDATA[$left_string]]></code>
|
|
<code><![CDATA[$path_to_file]]></code>
|
|
<code><![CDATA[$right_string]]></code>
|
|
<code><![CDATA[$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><![CDATA[!$switch_var_id]]></code>
|
|
<code><![CDATA[$switch_var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/SimpleTypeInferer.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$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>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/Expression/YieldAnalyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$atomic_return_type->type_params[2]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$var_comment->var_id]]></code>
|
|
<code><![CDATA[$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>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/ReturnAnalyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$method_name]]></code>
|
|
<code><![CDATA[$method_name]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<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><![CDATA[$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><![CDATA[$root_var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/Statements/UnusedAssignmentRemover.php">
|
|
<PossiblyUndefinedArrayOffset>
|
|
<code><![CDATA[$token_list[$iter]]]></code>
|
|
</PossiblyUndefinedArrayOffset>
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$token_list[$iter]]]></code>
|
|
<code><![CDATA[$token_list[$iter]]]></code>
|
|
<code><![CDATA[$token_list[$iter]]]></code>
|
|
<code><![CDATA[$token_list[$iter]]]></code>
|
|
<code><![CDATA[$token_list[0]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Analyzer/StatementsAnalyzer.php">
|
|
<PossiblyUndefinedArrayOffset>
|
|
<code><![CDATA[$stmt->expr->getArgs()[0]]]></code>
|
|
</PossiblyUndefinedArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$branch_point]]></code>
|
|
<code><![CDATA[$new_issues]]></code>
|
|
<code><![CDATA[$ns = $this->getNamespace()]]></code>
|
|
<code><![CDATA[$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><![CDATA[!$root_path]]></code>
|
|
<code><![CDATA[$options['verbose']]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Cli/Psalm.php">
|
|
<PossiblyInvalidArgument>
|
|
<code><![CDATA[$options['f'] ?? null]]></code>
|
|
</PossiblyInvalidArgument>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$config->error_baseline]]></code>
|
|
<code><![CDATA[!$paths_to_check]]></code>
|
|
<code><![CDATA[!$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><![CDATA[$baseline_file_path]]></code>
|
|
<code><![CDATA[$cache_directory]]></code>
|
|
<code><![CDATA[$config->threads]]></code>
|
|
<code><![CDATA[$find_references_to]]></code>
|
|
<code><![CDATA[empty($baselineFile)]]></code>
|
|
<code><![CDATA[getenv('PSALM_SHEPHERD')]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Cli/Psalter.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$root_path]]></code>
|
|
<code><![CDATA[$paths_to_check]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Cli/Refactor.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$identifier_name]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$last_arg]]></code>
|
|
<code><![CDATA[!$last_arg]]></code>
|
|
<code><![CDATA[!$last_arg]]></code>
|
|
<code><![CDATA[!$root_path]]></code>
|
|
<code><![CDATA[strpos($last_arg_part, '::')]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/CliUtils.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$config_file]]></code>
|
|
<code><![CDATA[!$end_psalm_open_tag]]></code>
|
|
<code><![CDATA[!$path_to_check]]></code>
|
|
<code><![CDATA[$config->error_baseline]]></code>
|
|
<code><![CDATA[$f_paths]]></code>
|
|
<code><![CDATA[$path_to_config]]></code>
|
|
<code><![CDATA[$stdin = fgets(STDIN)]]></code>
|
|
<code><![CDATA[$version = $config->getPHPVersionFromComposerJson()]]></code>
|
|
<code><![CDATA[$version = $config->getPhpVersionFromConfig()]]></code>
|
|
<code><![CDATA[strpos(__NAMESPACE__, 'HumbugBox')]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Codebase/Analyzer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$trait]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!strpos($changed_member, '&')]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Codebase/ClassLikes.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$destination_name]]></code>
|
|
<code><![CDATA[$destination_name]]></code>
|
|
<code><![CDATA[$destination_name]]></code>
|
|
<code><![CDATA[$source_const_name]]></code>
|
|
<code><![CDATA[$stub]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$calling_fq_class_name]]></code>
|
|
<code><![CDATA[!$insert_pos]]></code>
|
|
<code><![CDATA[!$insert_pos]]></code>
|
|
<code><![CDATA[!$insert_pos]]></code>
|
|
<code><![CDATA[$calling_fq_class_name]]></code>
|
|
<code><![CDATA[$calling_fq_class_name]]></code>
|
|
<code><![CDATA[$calling_fq_class_name]]></code>
|
|
<code><![CDATA[$calling_fq_class_name]]></code>
|
|
<code><![CDATA[$calling_fq_class_name]]></code>
|
|
<code><![CDATA[$calling_fq_class_name]]></code>
|
|
<code><![CDATA[$calling_fq_class_name]]></code>
|
|
<code><![CDATA[$calling_fq_class_name]]></code>
|
|
<code><![CDATA[$calling_fq_class_name]]></code>
|
|
<code><![CDATA[$calling_fq_class_name]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$file_path]]></code>
|
|
<code><![CDATA[$file_path]]></code>
|
|
<code><![CDATA[$file_path]]></code>
|
|
<code><![CDATA[$file_path]]></code>
|
|
<code><![CDATA[$file_path]]></code>
|
|
<code><![CDATA[$migrated_source_fqcln]]></code>
|
|
<code><![CDATA[$migrated_source_fqcln]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Codebase/ConstantTypeResolver.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$cond->value]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Codebase/Functions.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$stub]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$checked_file_path]]></code>
|
|
<code><![CDATA[!$root_file_path]]></code>
|
|
<code><![CDATA[$args]]></code>
|
|
<code><![CDATA[$function->cased_name]]></code>
|
|
<code><![CDATA[$namespace]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Codebase/InternalCallMapHandler.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$return_type_string]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Codebase/Methods.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$calling_class_name]]></code>
|
|
<code><![CDATA[!$extends]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$found_generic_params]]></code>
|
|
<code><![CDATA[$old_method_id]]></code>
|
|
<code><![CDATA[$source_file_path]]></code>
|
|
<code><![CDATA[$source_file_path]]></code>
|
|
<code><![CDATA[$source_file_path]]></code>
|
|
<code><![CDATA[$source_file_path]]></code>
|
|
<code><![CDATA[$source_file_path]]></code>
|
|
<code><![CDATA[$source_file_path]]></code>
|
|
<code><![CDATA[$source_file_path]]></code>
|
|
<code><![CDATA[$source_file_path]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Codebase/Populator.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!strpos($fq_classlike_name_lc, '\\')]]></code>
|
|
<code><![CDATA[$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>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Codebase/Properties.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$property_name]]></code>
|
|
<code><![CDATA[$property_name]]></code>
|
|
<code><![CDATA[$property_name]]></code>
|
|
<code><![CDATA[$property_name]]></code>
|
|
<code><![CDATA[$property_name]]></code>
|
|
<code><![CDATA[$property_name]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<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><![CDATA[$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><![CDATA[$specialization_key]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Diff/ClassStatementsDiffer.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$a->props[0]]]></code>
|
|
<code><![CDATA[$a->stmts[0]]]></code>
|
|
<code><![CDATA[$a_stmt_comments[0]]]></code>
|
|
<code><![CDATA[$b->props[0]]]></code>
|
|
<code><![CDATA[$b->stmts[0]]]></code>
|
|
<code><![CDATA[$b_stmt_comments[0]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$a->stmts]]></code>
|
|
<code><![CDATA[$b->stmts]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Diff/FileDiffer.php">
|
|
<InvalidArrayOffset>
|
|
<code><![CDATA[$b[$y]]]></code>
|
|
</InvalidArrayOffset>
|
|
</file>
|
|
<file src="src/Psalm/Internal/ExecutionEnvironment/BuildInfoCollector.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$this->readEnv['CI_PR_NUMBER']]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/ExecutionEnvironment/GitInfoCollector.php">
|
|
<PossiblyUndefinedArrayOffset>
|
|
<code><![CDATA[$exploded[1]]]></code>
|
|
<code><![CDATA[$url]]></code>
|
|
</PossiblyUndefinedArrayOffset>
|
|
</file>
|
|
<file src="src/Psalm/Internal/FileManipulation/FileManipulationBuffer.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$var_end]]></code>
|
|
<code><![CDATA[$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><![CDATA[$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><![CDATA[$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>
|
|
<file src="src/Psalm/Internal/FileManipulation/PropertyDocblockManipulator.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$stmt->props[0]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<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><![CDATA[$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>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Fork/Pool.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$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><![CDATA[empty($message)]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/LanguageServer/LanguageServer.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$clientConfiguration->TCPServerAddress]]></code>
|
|
<code><![CDATA[$clientConfiguration->TCPServerAddress]]></code>
|
|
<code><![CDATA[$clientConfiguration->onchangeLineLimit]]></code>
|
|
<code><![CDATA[empty($additional_info)]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/MethodIdentifier.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$method_id_parts[1]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
</file>
|
|
<file src="src/Psalm/Internal/PhpVisitor/AssignmentMapVisitor.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$arg_var_id]]></code>
|
|
<code><![CDATA[$arg_var_id]]></code>
|
|
<code><![CDATA[$left_var_id]]></code>
|
|
<code><![CDATA[$left_var_id]]></code>
|
|
<code><![CDATA[$right_var_id]]></code>
|
|
<code><![CDATA[$right_var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/PhpVisitor/PartialParserVisitor.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$cs[0]]]></code>
|
|
<code><![CDATA[$match[0]]]></code>
|
|
<code><![CDATA[$match[1]]]></code>
|
|
<code><![CDATA[$match[2]]]></code>
|
|
<code><![CDATA[$node->stmts[0]]]></code>
|
|
<code><![CDATA[$replacement_stmts[0]]]></code>
|
|
<code><![CDATA[$replacement_stmts[0]]]></code>
|
|
<code><![CDATA[$replacement_stmts[0]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$method_contents]]></code>
|
|
<code><![CDATA[$this->parser->parse(
|
|
$hacky_class_fix,
|
|
$error_handler,
|
|
)]]></code>
|
|
<code><![CDATA[$this->parser->parse(
|
|
$fake_class,
|
|
$error_handler,
|
|
)]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/PhpVisitor/Reflector/ClassLikeDocblockParser.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$doc_line_parts[1]]]></code>
|
|
<code><![CDATA[$matches[0]]]></code>
|
|
<code><![CDATA[$method_tree->children[0]]]></code>
|
|
<code><![CDATA[$method_tree->children[1]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$method_entry]]></code>
|
|
<code><![CDATA[!strpos($doc_line_parts[1], '(')]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/PhpVisitor/Reflector/ClassLikeNodeScanner.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$l[4]]]></code>
|
|
<code><![CDATA[$r[4]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$var_line_parts]]></code>
|
|
<code><![CDATA[$adaptation->newModifier]]></code>
|
|
<code><![CDATA[$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><![CDATA[$fq_classlike_name]]></code>
|
|
<code><![CDATA[$string_value]]></code>
|
|
<code><![CDATA[$string_value]]></code>
|
|
<code><![CDATA[$string_value]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/PhpVisitor/Reflector/ExpressionScanner.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$node->getArgs()[0]]]></code>
|
|
<code><![CDATA[$node->getArgs()[1]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$skip_if_descendants]]></code>
|
|
<code><![CDATA[!$skip_if_descendants]]></code>
|
|
<code><![CDATA[$include_path]]></code>
|
|
<code><![CDATA[$path_to_file]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$since_parts[1]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RedundantCondition>
|
|
<code><![CDATA[count($line_parts) > 0]]></code>
|
|
</RedundantCondition>
|
|
</file>
|
|
<file src="src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockScanner.php">
|
|
<PossiblyUndefinedArrayOffset>
|
|
<code><![CDATA[$source_param_string]]></code>
|
|
</PossiblyUndefinedArrayOffset>
|
|
<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><![CDATA[$template_types]]></code>
|
|
<code><![CDATA[$template_types]]></code>
|
|
<code><![CDATA[$template_types]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeNodeScanner.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$stmt->stmts[0]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<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><![CDATA[$fq_classlike_name]]></code>
|
|
<code><![CDATA[$function_id]]></code>
|
|
<code><![CDATA[$function_id]]></code>
|
|
<code><![CDATA[$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><![CDATA[$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>
|
|
</file>
|
|
<file src="src/Psalm/Internal/PhpVisitor/SimpleNameResolver.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$cs[0]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$offset_map]]></code>
|
|
<code><![CDATA[$this->end_change]]></code>
|
|
<code><![CDATA[$this->start_change]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/PluginManager/Command/DisableCommand.php">
|
|
<RedundantCondition>
|
|
<code><![CDATA[$config_file_path !== null]]></code>
|
|
</RedundantCondition>
|
|
<ReservedWord>
|
|
<code><![CDATA[$input->getArgument('pluginName')]]></code>
|
|
<code><![CDATA[$input->getOption('config')]]></code>
|
|
</ReservedWord>
|
|
</file>
|
|
<file src="src/Psalm/Internal/PluginManager/Command/EnableCommand.php">
|
|
<RedundantCondition>
|
|
<code><![CDATA[$config_file_path !== null]]></code>
|
|
</RedundantCondition>
|
|
<ReservedWord>
|
|
<code><![CDATA[$input->getArgument('pluginName')]]></code>
|
|
<code><![CDATA[$input->getOption('config')]]></code>
|
|
</ReservedWord>
|
|
</file>
|
|
<file src="src/Psalm/Internal/PluginManager/Command/ShowCommand.php">
|
|
<RedundantCondition>
|
|
<code><![CDATA[$config_file_path !== null]]></code>
|
|
</RedundantCondition>
|
|
<ReservedWord>
|
|
<code><![CDATA[$input->getOption('config')]]></code>
|
|
</ReservedWord>
|
|
</file>
|
|
<file src="src/Psalm/Internal/PluginManager/ConfigFile.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$path]]></code>
|
|
<code><![CDATA[$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><![CDATA[!$root_cache_directory]]></code>
|
|
<code><![CDATA[$file_contents]]></code>
|
|
<code><![CDATA[$file_path]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Provider/FileReferenceCacheProvider.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$cache_directory]]></code>
|
|
<code><![CDATA[!$cache_directory]]></code>
|
|
<code><![CDATA[!$cache_directory]]></code>
|
|
<code><![CDATA[$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><![CDATA[!$root_cache_directory]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Provider/FunctionParamsProvider.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$result]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Provider/MethodReturnTypeProvider.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$called_method_name]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Provider/ParamsProvider/ArrayMultisortParamsProvider.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$extended_var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Provider/ParserCacheProvider.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$cache_directory]]></code>
|
|
<code><![CDATA[!$root_cache_directory]]></code>
|
|
<code><![CDATA[!$root_cache_directory]]></code>
|
|
<code><![CDATA[!$root_cache_directory]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Provider/ProjectCacheProvider.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$cache_directory]]></code>
|
|
<code><![CDATA[!$cache_directory]]></code>
|
|
<code><![CDATA[!$this->composer_lock_hash]]></code>
|
|
<code><![CDATA[$cache_directory]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Provider/ReturnTypeProvider/ArrayColumnReturnTypeProvider.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$key_column_name]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Provider/ReturnTypeProvider/ArrayFilterReturnTypeProvider.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$callable_extended_var_id]]></code>
|
|
<code><![CDATA[$statements_source->getTemplateTypeMap()]]></code>
|
|
<code><![CDATA[$statements_source->getTemplateTypeMap()]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Provider/ReturnTypeProvider/ArrayMapReturnTypeProvider.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$callable_method_name]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Provider/ReturnTypeProvider/ArrayMergeReturnTypeProvider.php">
|
|
<InvalidArgument>
|
|
<code><![CDATA[$class_strings ?: null]]></code>
|
|
</InvalidArgument>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Provider/ReturnTypeProvider/ArrayReduceReturnTypeProvider.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$method_name]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Provider/ReturnTypeProvider/PdoStatementReturnTypeProvider.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$fetch_class_name]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Provider/ReturnTypeProvider/PdoStatementSetFetchMode.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$call_args]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Provider/StatementsProvider.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$existing_file_contents]]></code>
|
|
<code><![CDATA[$existing_file_contents]]></code>
|
|
<code><![CDATA[$existing_file_contents]]></code>
|
|
<code><![CDATA[$existing_statements]]></code>
|
|
<code><![CDATA[$existing_statements]]></code>
|
|
<code><![CDATA[$existing_statements]]></code>
|
|
<code><![CDATA[$existing_statements]]></code>
|
|
<code><![CDATA[$file_changes]]></code>
|
|
<code><![CDATA[$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><![CDATA[$first_line_padding]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Scanner/PhpStormMetaScanner.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$resolved_name]]></code>
|
|
<code><![CDATA[$mapped_type = $map[$offset_arg_value] ?? null]]></code>
|
|
<code><![CDATA[$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><![CDATA[$key]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Type/Comparator/AtomicTypeComparator.php">
|
|
<ComplexMethod>
|
|
<code><![CDATA[isContainedBy]]></code>
|
|
</ComplexMethod>
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$array->properties[0]]]></code>
|
|
<code><![CDATA[$array->properties[0]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Type/Comparator/CallableTypeComparator.php">
|
|
<LessSpecificReturnStatement>
|
|
<code><![CDATA[$callable]]></code>
|
|
</LessSpecificReturnStatement>
|
|
<MoreSpecificReturnType>
|
|
<code><![CDATA[TCallable|TClosure|null]]></code>
|
|
</MoreSpecificReturnType>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$class_name]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$calling_method_id]]></code>
|
|
<code><![CDATA[$container_type_part->params]]></code>
|
|
<code><![CDATA[$file_name]]></code>
|
|
<code><![CDATA[$file_name]]></code>
|
|
<code><![CDATA[$input_variadic_param_idx]]></code>
|
|
<code><![CDATA[$member_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Type/Comparator/GenericTypeComparator.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!($container_type_params_covariant[$i] ?? false)]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Type/Comparator/ObjectComparator.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$intersection_container_type_lower]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Type/NegatedAssertionReconciler.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Type/SimpleAssertionReconciler.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$array_atomic_type->properties[0]]]></code>
|
|
<code><![CDATA[$properties[0]]]></code>
|
|
<code><![CDATA[$properties[0]]]></code>
|
|
<code><![CDATA[$properties[0]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[strpos($key, '[')]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Type/SimpleNegatedAssertionReconciler.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$count]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$key]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
<code><![CDATA[$var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Type/TemplateInferredTypeReplacer.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$classlike_storage->template_extended_params]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Type/TemplateStandinTypeReplacer.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[getClassTemplateTypes]]></code>
|
|
</ImpureMethodCall>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$bracket_pos = strpos($input_key, '<')]]></code>
|
|
<code><![CDATA[$bracket_pos = strpos($key, '<')]]></code>
|
|
<code><![CDATA[$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>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Type/TypeCombiner.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<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>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<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><![CDATA[$shared_classlikes]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Type/TypeExpander.php">
|
|
<InvalidArgument>
|
|
<code><![CDATA[$fallback_params]]></code>
|
|
</InvalidArgument>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$container_class_storage->template_types]]></code>
|
|
<code><![CDATA[$params]]></code>
|
|
<code><![CDATA[$parent_class]]></code>
|
|
<code><![CDATA[$self_class]]></code>
|
|
<code><![CDATA[$self_class]]></code>
|
|
<code><![CDATA[$self_class]]></code>
|
|
<code><![CDATA[$self_class]]></code>
|
|
<code><![CDATA[$self_class]]></code>
|
|
<code><![CDATA[$self_class]]></code>
|
|
<code><![CDATA[$static_class_type]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Type/TypeParser.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$const_name]]></code>
|
|
<code><![CDATA[$const_name]]></code>
|
|
<code><![CDATA[$parse_tree->children[0]]]></code>
|
|
<code><![CDATA[$parse_tree->condition->children[0]]]></code>
|
|
<code><![CDATA[array_keys($offset_template_data)[0]]]></code>
|
|
<code><![CDATA[array_keys($template_type_map[$array_param_name])[0]]]></code>
|
|
<code><![CDATA[array_keys($template_type_map[$class_name])[0]]]></code>
|
|
<code><![CDATA[array_keys($template_type_map[$fq_classlike_name])[0]]]></code>
|
|
<code><![CDATA[array_keys($template_type_map[$template_param_name])[0]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$extra_params]]></code>
|
|
<code><![CDATA[strpos($parse_tree->value, '::')]]></code>
|
|
<code><![CDATA[strpos($property_branch->value, '::')]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/Type/TypeTokenizer.php">
|
|
<PossiblyInvalidArrayOffset>
|
|
<code><![CDATA[$type_tokens[$i - 1]]]></code>
|
|
<code><![CDATA[$type_tokens[$i - 1]]]></code>
|
|
<code><![CDATA[$type_tokens[$i - 1]]]></code>
|
|
<code><![CDATA[$type_tokens[$i - 1]]]></code>
|
|
</PossiblyInvalidArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$parent_fqcln]]></code>
|
|
<code><![CDATA[$self_fqcln]]></code>
|
|
<code><![CDATA[strpos($string_type_token[0], '$')]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Internal/TypeVisitor/TypeChecker.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$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><![CDATA[$function_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Issue/MixedArgument.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$function_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Issue/MixedArgumentTypeCoercion.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$function_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/IssueBuffer.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$report_options->output_path]]></code>
|
|
<code><![CDATA[$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>
|
|
</file>
|
|
<file src="src/Psalm/Storage/ClassConstantStorage.php">
|
|
<MutableDependency>
|
|
<code><![CDATA[CustomMetadataTrait]]></code>
|
|
</MutableDependency>
|
|
</file>
|
|
<file src="src/Psalm/Storage/FunctionLikeParameter.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[traverse]]></code>
|
|
<code><![CDATA[traverse]]></code>
|
|
<code><![CDATA[traverse]]></code>
|
|
<code><![CDATA[traverse]]></code>
|
|
</ImpureMethodCall>
|
|
</file>
|
|
<file src="src/Psalm/Storage/Possibilities.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$this_var_id]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Type.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$namespace]]></code>
|
|
<code><![CDATA[$namespace]]></code>
|
|
<code><![CDATA[$namespace]]></code>
|
|
<code><![CDATA[strpos($value, '\\')]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[classOrInterfaceExists]]></code>
|
|
<code><![CDATA[classOrInterfaceExists]]></code>
|
|
<code><![CDATA[classOrInterfaceExists]]></code>
|
|
<code><![CDATA[getMappedGenericTypeParams]]></code>
|
|
<code><![CDATA[interfaceExtends]]></code>
|
|
<code><![CDATA[interfaceExtends]]></code>
|
|
<code><![CDATA[interfaceExtends]]></code>
|
|
<code><![CDATA[traverse]]></code>
|
|
<code><![CDATA[traverse]]></code>
|
|
</ImpureMethodCall>
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[array_keys($template_type_map[$value])[0]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<ReferenceConstraintViolation>
|
|
<code><![CDATA[$value]]></code>
|
|
</ReferenceConstraintViolation>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[strpos($value, '-')]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/CallableTrait.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[replace]]></code>
|
|
<code><![CDATA[replace]]></code>
|
|
<code><![CDATA[replace]]></code>
|
|
<code><![CDATA[replace]]></code>
|
|
</ImpureMethodCall>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$params]]></code>
|
|
<code><![CDATA[$params]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/GenericTrait.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[getMappedGenericTypeParams]]></code>
|
|
<code><![CDATA[replace]]></code>
|
|
<code><![CDATA[replace]]></code>
|
|
</ImpureMethodCall>
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$this->type_params[1]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!($container_type_params_covariant[$offset] ?? true)]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/HasIntersectionTrait.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[getMostSpecificTypeFromBounds]]></code>
|
|
</ImpureMethodCall>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TCallableList.php">
|
|
<DeprecatedClass>
|
|
<code><![CDATA[TNonEmptyList]]></code>
|
|
</DeprecatedClass>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TClassString.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[replace]]></code>
|
|
</ImpureMethodCall>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$namespace]]></code>
|
|
<code><![CDATA[$namespace]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TClassStringMap.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[getString]]></code>
|
|
<code><![CDATA[getString]]></code>
|
|
<code><![CDATA[replace]]></code>
|
|
<code><![CDATA[replace]]></code>
|
|
</ImpureMethodCall>
|
|
<ImpurePropertyAssignment>
|
|
<code><![CDATA[$cloned->value_param]]></code>
|
|
</ImpurePropertyAssignment>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TClosure.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$intersection]]></code>
|
|
<code><![CDATA[!$intersection]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TConditional.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[replace]]></code>
|
|
</ImpureMethodCall>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TDependentListKey.php">
|
|
<PossiblyUnusedMethod>
|
|
<code><![CDATA[__construct]]></code>
|
|
</PossiblyUnusedMethod>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TGenericObject.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$intersection]]></code>
|
|
<code><![CDATA[!$intersection]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TIterable.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$intersection]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TKeyedArray.php">
|
|
<DeprecatedClass>
|
|
<code><![CDATA[TList]]></code>
|
|
<code><![CDATA[new TList($this->getGenericValueType())]]></code>
|
|
<code><![CDATA[new TNonEmptyList($this->getGenericValueType())]]></code>
|
|
</DeprecatedClass>
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[combine]]></code>
|
|
<code><![CDATA[combine]]></code>
|
|
<code><![CDATA[combineUnionTypes]]></code>
|
|
<code><![CDATA[combineUnionTypes]]></code>
|
|
<code><![CDATA[combineUnionTypes]]></code>
|
|
<code><![CDATA[combineUnionTypes]]></code>
|
|
<code><![CDATA[combineUnionTypes]]></code>
|
|
<code><![CDATA[combineUnionTypes]]></code>
|
|
<code><![CDATA[combineUnionTypes]]></code>
|
|
<code><![CDATA[replace]]></code>
|
|
<code><![CDATA[replace]]></code>
|
|
<code><![CDATA[replace]]></code>
|
|
<code><![CDATA[replace]]></code>
|
|
</ImpureMethodCall>
|
|
<ImpurePropertyAssignment>
|
|
<code><![CDATA[$key_type->possibly_undefined]]></code>
|
|
</ImpurePropertyAssignment>
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$this->properties[0]]]></code>
|
|
<code><![CDATA[$this->properties[0]]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<PossiblyUnusedMethod>
|
|
<code><![CDATA[getList]]></code>
|
|
</PossiblyUnusedMethod>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TList.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[replace]]></code>
|
|
<code><![CDATA[replace]]></code>
|
|
</ImpureMethodCall>
|
|
<ImpurePropertyAssignment>
|
|
<code><![CDATA[$cloned->type_param]]></code>
|
|
</ImpurePropertyAssignment>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TLiteralClassString.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$namespace]]></code>
|
|
<code><![CDATA[$namespace]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TNamedObject.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$intersection]]></code>
|
|
<code><![CDATA[$intersection]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TNonEmptyList.php">
|
|
<DeprecatedClass>
|
|
<code><![CDATA[TList]]></code>
|
|
</DeprecatedClass>
|
|
<PossiblyUnusedMethod>
|
|
<code><![CDATA[setCount]]></code>
|
|
</PossiblyUnusedMethod>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TObjectWithProperties.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[replace]]></code>
|
|
<code><![CDATA[replace]]></code>
|
|
</ImpureMethodCall>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$intersection]]></code>
|
|
<code><![CDATA[!$intersection]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TTemplateKeyOf.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[replace]]></code>
|
|
</ImpureMethodCall>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TTemplateParam.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$intersection]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TTemplatePropertiesOf.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[replace]]></code>
|
|
</ImpureMethodCall>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TTemplateValueOf.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[replace]]></code>
|
|
</ImpureMethodCall>
|
|
</file>
|
|
<file src="src/Psalm/Type/Atomic/TTypeAlias.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$this->extra_types]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Type/MutableUnion.php">
|
|
<PossiblyUnusedProperty>
|
|
<code><![CDATA[$allow_mutations]]></code>
|
|
<code><![CDATA[$by_ref]]></code>
|
|
<code><![CDATA[$failed_reconciliation]]></code>
|
|
<code><![CDATA[$from_template_default]]></code>
|
|
<code><![CDATA[$has_mutations]]></code>
|
|
<code><![CDATA[$initialized_class]]></code>
|
|
<code><![CDATA[$reference_free]]></code>
|
|
</PossiblyUnusedProperty>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[strpos($type_string, '(')]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="src/Psalm/Type/Reconciler.php">
|
|
<PossiblyUndefinedIntArrayOffset>
|
|
<code><![CDATA[$const_name]]></code>
|
|
</PossiblyUndefinedIntArrayOffset>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!strpos($key, '$')]]></code>
|
|
<code><![CDATA[!strpos($key, '[')]]></code>
|
|
<code><![CDATA[$array_key_offset]]></code>
|
|
<code><![CDATA[$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>
|
|
</file>
|
|
<file src="src/Psalm/Type/TypeNode.php">
|
|
<ReferenceConstraintViolation>
|
|
<code><![CDATA[$node]]></code>
|
|
</ReferenceConstraintViolation>
|
|
</file>
|
|
<file src="src/Psalm/Type/TypeVisitor.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[visit]]></code>
|
|
</ImpureMethodCall>
|
|
</file>
|
|
<file src="src/Psalm/Type/Union.php">
|
|
<PossiblyUnusedProperty>
|
|
<code><![CDATA[$ignore_isset]]></code>
|
|
</PossiblyUnusedProperty>
|
|
</file>
|
|
<file src="src/Psalm/Type/UnionTrait.php">
|
|
<ImpureMethodCall>
|
|
<code><![CDATA[traverse]]></code>
|
|
<code><![CDATA[traverse]]></code>
|
|
<code><![CDATA[traverseArray]]></code>
|
|
<code><![CDATA[traverseArray]]></code>
|
|
</ImpureMethodCall>
|
|
<MoreSpecificReturnType>
|
|
<code><![CDATA[TArray|TKeyedArray|TClassStringMap]]></code>
|
|
</MoreSpecificReturnType>
|
|
<PossiblyUndefinedStringArrayOffset>
|
|
<code><![CDATA[$this->types['array']]]></code>
|
|
</PossiblyUndefinedStringArrayOffset>
|
|
<PossiblyUnusedMethod>
|
|
<code><![CDATA[allFloatLiterals]]></code>
|
|
<code><![CDATA[allFloatLiterals]]></code>
|
|
<code><![CDATA[hasLowercaseString]]></code>
|
|
<code><![CDATA[hasLowercaseString]]></code>
|
|
</PossiblyUnusedMethod>
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[!$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>
|
|
</file>
|
|
<file src="tests/DocumentationTest.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[strpos($error_message, 'ArrayOffset')]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
<file src="tests/EndToEnd/PsalmEndToEndTest.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$level]]></code>
|
|
<code><![CDATA[$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>
|
|
<file src="tests/TypeParseTest.php">
|
|
<RiskyTruthyFalsyComparison>
|
|
<code><![CDATA[$param_type_1]]></code>
|
|
<code><![CDATA[$param_type_2]]></code>
|
|
<code><![CDATA[$param_type_3]]></code>
|
|
<code><![CDATA[$param_type_4]]></code>
|
|
<code><![CDATA[$return_type]]></code>
|
|
</RiskyTruthyFalsyComparison>
|
|
</file>
|
|
</files>
|