diff --git a/src/Psalm/Internal/Analyzer/Statements/Block/ForeachAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Block/ForeachAnalyzer.php index b486c7774..56096b811 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Block/ForeachAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Block/ForeachAnalyzer.php @@ -61,6 +61,7 @@ use function array_map; use function array_merge; use function array_search; use function array_values; +use function assert; use function in_array; use function is_string; use function reset; diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/ArrayAssignmentAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/ArrayAssignmentAnalyzer.php index 68b003f16..6e0737c11 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/ArrayAssignmentAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/ArrayAssignmentAnalyzer.php @@ -48,6 +48,7 @@ use function in_array; use function is_string; use function preg_match; use function strlen; +use function strpos; /** * @internal diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArrayFunctionArgumentsAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArrayFunctionArgumentsAnalyzer.php index 7793bd72c..90a2b0913 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArrayFunctionArgumentsAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArrayFunctionArgumentsAnalyzer.php @@ -40,6 +40,7 @@ use Psalm\Type\Union; use UnexpectedValueException; use function array_filter; +use function array_pop; use function array_shift; use function array_unshift; use function assert; diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/CallAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/CallAnalyzer.php index 946baaaa6..502e46a47 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/CallAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/CallAnalyzer.php @@ -54,6 +54,7 @@ use function array_filter; use function array_map; use function array_merge; use function array_unique; +use function assert; use function count; use function explode; use function implode; diff --git a/src/Psalm/Internal/Analyzer/Statements/UnsetAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/UnsetAnalyzer.php index 6b5792d29..78073f2f0 100644 --- a/src/Psalm/Internal/Analyzer/Statements/UnsetAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/UnsetAnalyzer.php @@ -17,6 +17,7 @@ use Psalm\Type\Atomic\TNonEmptyMixed; use Psalm\Type\Union; use function count; +use function is_int; /** * @internal diff --git a/src/Psalm/Internal/Type/TypeCombiner.php b/src/Psalm/Internal/Type/TypeCombiner.php index 3e0ad4ecf..74c873c97 100644 --- a/src/Psalm/Internal/Type/TypeCombiner.php +++ b/src/Psalm/Internal/Type/TypeCombiner.php @@ -60,6 +60,7 @@ use function array_key_exists; use function array_keys; use function array_merge; use function array_values; +use function assert; use function count; use function get_class; use function is_int; diff --git a/src/Psalm/Type/Atomic.php b/src/Psalm/Type/Atomic.php index 2231e008e..79099e121 100644 --- a/src/Psalm/Type/Atomic.php +++ b/src/Psalm/Type/Atomic.php @@ -68,6 +68,7 @@ use Psalm\Type\Atomic\TVoid; use function array_filter; use function array_keys; +use function count; use function get_class; use function is_array; use function is_numeric; diff --git a/src/Psalm/Type/Reconciler.php b/src/Psalm/Type/Reconciler.php index 54fa9b31c..0baf92c57 100644 --- a/src/Psalm/Type/Reconciler.php +++ b/src/Psalm/Type/Reconciler.php @@ -23,7 +23,6 @@ use Psalm\Storage\Assertion; use Psalm\Storage\Assertion\ArrayKeyExists; use Psalm\Storage\Assertion\Empty_; use Psalm\Storage\Assertion\Falsy; -use Psalm\Storage\Assertion\HasArrayKey; use Psalm\Storage\Assertion\HasIntOrStringArrayAccess; use Psalm\Storage\Assertion\HasStringArrayAccess; use Psalm\Storage\Assertion\IsEqualIsset;