Skip to content

For Contexts, rely on token constants + Add MySQL 8.4 context #844

For Contexts, rely on token constants + Add MySQL 8.4 context

For Contexts, rely on token constants + Add MySQL 8.4 context #844

Triggered via pull request August 6, 2024 10:03
Status Failure
Total duration 1m 17s
Artifacts

lint-and-analyse-php.yml

on: pull_request
Matrix: analyse-php
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 3 warnings
NamedArgumentNotAllowed: src/Tools/ContextGenerator.php#L177
src/Tools/ContextGenerator.php:177:33: NamedArgumentNotAllowed: Method array_merge called with named unpacked array array<array-key, array<array-key, mixed>> (array with string keys) (see https://psalm.dev/268)
MixedArgument: src/Tools/ContextGenerator.php#L183
src/Tools/ContextGenerator.php:183:27: MixedArgument: Argument 1 of trim cannot be mixed, expecting string (see https://psalm.dev/030)
InvalidArgument: src/Tools/ContextGenerator.php#L219
src/Tools/ContextGenerator.php:219:34: InvalidArgument: Argument 1 of PhpMyAdmin\SqlParser\Tools\ContextGenerator::sortWords expects array<int, array<int, array<int, string>>>, but array<int, non-empty-list<string>> provided (see https://psalm.dev/004)
ArgumentTypeCoercion: src/Tools/ContextGenerator.php#L269
src/Tools/ContextGenerator.php:269:55: ArgumentTypeCoercion: Argument 1 of PhpMyAdmin\SqlParser\Tools\ContextGenerator::printWords expects array<int, list<string>>, but parent type array<int, array<int, array<int, string>>> provided (see https://psalm.dev/193)
ArgumentTypeCoercion: tests/Tools/ContextGeneratorTest.php#L60
tests/Tools/ContextGeneratorTest.php:60:38: ArgumentTypeCoercion: Argument 1 of PhpMyAdmin\SqlParser\Tools\ContextGenerator::printWords expects array<int, list<string>>, but parent type array<int, array<int, array<int, string>>> provided (see https://psalm.dev/193)
UnusedBaselineEntry: src/Tools/ContextGenerator.php#L1
src/Tools/ContextGenerator.php:0:0: UnusedBaselineEntry: Baseline for issue "RedundantCondition" has 2 extra entries. (see https://psalm.dev/316)
analyse-php (8.2)
Process completed with exit code 2.
analyse-php (8.2): src/Tools/ContextGenerator.php#L1
Ignored error pattern #^Parameter \#2 \.\.\.\$arrays of function array_merge expects array, array\<int, string\>\|false given\.$# in path /home/runner/work/sql-parser/sql-parser/src/Tools/ContextGenerator.php was not matched in reported errors.
analyse-php (8.2): src/Tools/ContextGenerator.php#L174
Anonymous function should return array<int, string> but returns array<int, string>|false.
analyse-php (8.2): src/Tools/ContextGenerator.php#L269
Parameter #1 $words of static method PhpMyAdmin\SqlParser\Tools\ContextGenerator::printWords() expects array<int, array<int, string>>, array<int, array<int, array<int, string>>> given.
analyse-php (8.2): tests/Tools/ContextGeneratorTest.php#L60
Parameter #1 $words of static method PhpMyAdmin\SqlParser\Tools\ContextGenerator::printWords() expects array<int, array<int, string>>, array<int, array<int, array<int, string>>> given.
analyse-php (8.2)
Process completed with exit code 1.
lint-php
Process completed with exit code 2.
analyse-php (8.2)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
analyse-php (8.2)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
lint-php
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/