mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Fix all phpcs issues
This commit is contained in:
parent
2bd1dfafe7
commit
c9b9b29cf4
@ -27,7 +27,7 @@ class CommentChecker
|
||||
*/
|
||||
public static function getTypeFromComment(
|
||||
$comment,
|
||||
Context $context = null,
|
||||
$context,
|
||||
StatementsSource $source,
|
||||
$var_id = null,
|
||||
array $template_types = null,
|
||||
|
@ -70,8 +70,8 @@ class AssignmentChecker
|
||||
public static function analyze(
|
||||
StatementsChecker $statements_checker,
|
||||
PhpParser\Node\Expr $assign_var,
|
||||
PhpParser\Node\Expr $assign_value = null,
|
||||
Type\Union $assign_value_type = null,
|
||||
$assign_value,
|
||||
$assign_value_type,
|
||||
Context $context,
|
||||
$doc_comment,
|
||||
$by_reference = false,
|
||||
@ -432,7 +432,7 @@ class AssignmentChecker
|
||||
StatementsChecker $statements_checker,
|
||||
$stmt,
|
||||
$prop_name,
|
||||
PhpParser\Node\Expr $assignment_value = null,
|
||||
$assignment_value,
|
||||
Type\Union $assignment_value_type,
|
||||
Context $context
|
||||
) {
|
||||
@ -613,7 +613,8 @@ class AssignmentChecker
|
||||
$class_storage = ClassLikeChecker::$storage[strtolower((string)$lhs_type_part)];
|
||||
|
||||
if (isset($class_storage->pseudo_instance_properties['$' . $prop_name])) {
|
||||
$class_property_types[] = clone $class_storage->pseudo_instance_properties['$' . $prop_name];
|
||||
$class_property_types[] =
|
||||
clone $class_storage->pseudo_instance_properties['$' . $prop_name];
|
||||
$has_regular_setter = true;
|
||||
continue;
|
||||
}
|
||||
@ -784,7 +785,7 @@ class AssignmentChecker
|
||||
protected static function analyzeStaticPropertyAssignment(
|
||||
StatementsChecker $statements_checker,
|
||||
PhpParser\Node\Expr\StaticPropertyFetch $stmt,
|
||||
PhpParser\Node\Expr $assignment_value = null,
|
||||
$assignment_value,
|
||||
Type\Union $assignment_value_type,
|
||||
Context $context
|
||||
) {
|
||||
|
@ -1391,7 +1391,7 @@ class CallChecker
|
||||
protected static function checkFunctionArguments(
|
||||
StatementsChecker $statements_checker,
|
||||
array $args,
|
||||
array $function_params = null,
|
||||
$function_params,
|
||||
Context $context
|
||||
) {
|
||||
$last_param = $function_params
|
||||
|
Loading…
x
Reference in New Issue
Block a user