Report UndefinedFunction/Method correctly if analyzed PHP version is older than currently used PHP version #10771
Annotations
10 errors
Run Psalm:
src/Psalm/Codebase.php#L450
src/Psalm/Codebase.php:450:44: MixedArgumentTypeCoercion: Argument 1 of Psalm\Internal\Codebase\Scanner::addFilesToDeepScan expects array<string, string>, but parent type array<array-key, mixed>|false provided (see https://psalm.dev/194)
|
Run Psalm:
src/Psalm/Codebase.php#L451
src/Psalm/Codebase.php:451:34: MixedArgumentTypeCoercion: Argument 1 of Psalm\Codebase::addFilesToAnalyze expects array<string, string>, but parent type array<array-key, mixed>|false provided (see https://psalm.dev/194)
|
Run Psalm:
src/Psalm/Codebase.php#L455
src/Psalm/Codebase.php:455:69: MixedArgumentTypeCoercion: Argument 2 of Psalm\Internal\Provider\FileReferenceProvider::updateReferenceCache expects array<string, bool|string>, but parent type array<array-key, mixed>|false provided (see https://psalm.dev/194)
|
Run Psalm:
src/Psalm/Internal/Algebra.php#L261
src/Psalm/Internal/Algebra.php:261:39: MixedArrayTypeCoercion: Coercion from array offset type 'array-key' to the expected type 'string' (see https://psalm.dev/195)
|
Run Psalm:
src/Psalm/Internal/Algebra.php#L262
src/Psalm/Internal/Algebra.php:262:42: MixedArrayTypeCoercion: Coercion from array offset type 'array-key' to the expected type 'string' (see https://psalm.dev/195)
|
Run Psalm:
src/Psalm/Internal/Analyzer/FileAnalyzer.php#L579
src/Psalm/Internal/Analyzer/FileAnalyzer.php:579:36: MixedPropertyTypeCoercion: $this->suppressed_issues expects 'array<array-key, string>', parent type `array<array-key, mixed|string>` provided (see https://psalm.dev/196)
|
Run Psalm:
src/Psalm/Internal/Analyzer/FileAnalyzer.php#L591
src/Psalm/Internal/Analyzer/FileAnalyzer.php:591:36: MixedPropertyTypeCoercion: $this->suppressed_issues expects 'array<array-key, string>', parent type `array<array-key, mixed>` provided (see https://psalm.dev/196)
|
Run Psalm:
src/Psalm/Internal/Analyzer/FunctionLikeAnalyzer.php#L1792
src/Psalm/Internal/Analyzer/FunctionLikeAnalyzer.php:1792:36: MixedPropertyTypeCoercion: $this->suppressed_issues expects 'array<array-key, string>', parent type `array<array-key, mixed|string>` provided (see https://psalm.dev/196)
|
Run Psalm:
src/Psalm/Internal/Analyzer/FunctionLikeAnalyzer.php#L1804
src/Psalm/Internal/Analyzer/FunctionLikeAnalyzer.php:1804:36: MixedPropertyTypeCoercion: $this->suppressed_issues expects 'array<array-key, string>', parent type `array<array-key, mixed>` provided (see https://psalm.dev/196)
|
Run Psalm:
src/Psalm/Internal/Analyzer/ProjectAnalyzer.php#L460
src/Psalm/Internal/Analyzer/ProjectAnalyzer.php:460:70: MixedArgumentTypeCoercion: Argument 2 of implode expects array<array-key, null|object{__tostring()}|scalar>, but parent type non-empty-array<array-key, mixed> provided (see https://psalm.dev/194)
|
Loading