mirror of
https://github.com/danog/psalm.git
synced 2025-01-23 06:11:25 +01:00
Meke staticy methods properly static
This commit is contained in:
parent
5302936e76
commit
6a4df30868
@ -116,7 +116,7 @@ class UnusedAssignmentRemover
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getPartialRemovalBounds(
|
private static function getPartialRemovalBounds(
|
||||||
Codebase $codebase,
|
Codebase $codebase,
|
||||||
CodeLocation $var_loc,
|
CodeLocation $var_loc,
|
||||||
int $end_bound,
|
int $end_bound,
|
||||||
|
@ -753,7 +753,7 @@ class ClassLikes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function makeImmutable(
|
public static function makeImmutable(
|
||||||
PhpParser\Node\Stmt\Class_ $class_stmt,
|
PhpParser\Node\Stmt\Class_ $class_stmt,
|
||||||
\Psalm\Internal\Analyzer\ProjectAnalyzer $project_analyzer,
|
\Psalm\Internal\Analyzer\ProjectAnalyzer $project_analyzer,
|
||||||
string $file_path
|
string $file_path
|
||||||
|
@ -327,7 +327,7 @@ class PartialParserVisitor extends PhpParser\NodeVisitorAbstract implements PhpP
|
|||||||
/**
|
/**
|
||||||
* @psalm-pure
|
* @psalm-pure
|
||||||
*/
|
*/
|
||||||
private function balanceBrackets(string $fake_class) : string
|
private static function balanceBrackets(string $fake_class) : string
|
||||||
{
|
{
|
||||||
$tokens = \token_get_all($fake_class);
|
$tokens = \token_get_all($fake_class);
|
||||||
|
|
||||||
|
@ -3813,7 +3813,7 @@ class ReflectorVisitor extends PhpParser\NodeVisitorAbstract implements PhpParse
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getUnresolvedClassConstExpr(
|
public static function getUnresolvedClassConstExpr(
|
||||||
PhpParser\Node\Expr $stmt,
|
PhpParser\Node\Expr $stmt,
|
||||||
Aliases $aliases,
|
Aliases $aliases,
|
||||||
string $fq_classlike_name
|
string $fq_classlike_name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user