Query: parse as AST #9159
Annotations
12 errors and 2 warnings
Upload code scanning results to GitHub
Unable to upload "/home/runner/work/kirby/kirby/sarif/psalm.sarif" as it is not valid SARIF:
- instance.runs[0].tool.driver.rules[0].helpUri does not conform to the "uri" format
|
Statically analyze using Psalm:
src/Query/Query.php#L113
src/Query/Query.php:113:16: HelperFunctionUse: Use of user-overridable Kirby helper "option"
|
Statically analyze using Psalm:
src/Toolkit/Query/Runners/Interpreted.php#L27
src/Toolkit/Query/Runners/Interpreted.php:27:43: ParamNameMismatch: Argument 2 of Kirby\Toolkit\Query\Runners\Interpreted::run has wrong name $bindings, expecting $context as defined by Kirby\Toolkit\Query\Runner::run (see https://psalm.dev/230)
|
Statically analyze using Psalm:
src/Toolkit/Query/Runners/Visitors/CodeGen.php#L36
src/Toolkit/Query/Runners/Visitors/CodeGen.php:36:12: InvalidParamDefault: Default value type array<never, never> for argument 1 of method Kirby\Toolkit\Query\Runners\Visitors\CodeGen::__construct does not match the given type array{string: Kirby\Toolkit\Query\AST\Closure} (see https://psalm.dev/062)
|
Statically analyze using Psalm:
src/Toolkit/Query/Runners/Visitors/Interpreter.php#L24
src/Toolkit/Query/Runners/Visitors/Interpreter.php:24:12: InvalidParamDefault: Default value type array<never, never> for argument 1 of method Kirby\Toolkit\Query\Runners\Visitors\Interpreter::__construct does not match the given type array{string: Kirby\Toolkit\Query\AST\Closure} (see https://psalm.dev/062)
|
Statically analyze using Psalm:
src/Toolkit/Query/Runners/Visitors/Interpreter.php#L25
src/Toolkit/Query/Runners/Visitors/Interpreter.php:25:12: InvalidParamDefault: Default value type array<never, never> for argument 2 of method Kirby\Toolkit\Query\Runners\Visitors\Interpreter::__construct does not match the given type array{string: mixed} (see https://psalm.dev/062)
|
Statically analyze using Psalm
Process completed with exit code 2.
|
Run tests:
tests/Database/Sql/SqliteTest.php#L69
Failed asserting that two strings are identical.
|
Run tests:
tests/Database/SqlTest.php#L94
Failed asserting that two strings are identical.
|
Run tests:
tests/Database/SqlTest.php#L234
Failed asserting that two strings are identical.
|
Run tests:
tests/Database/SqlTest.php#L289
Failed asserting that two strings are identical.
|
Run tests
Process completed with exit code 2.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744, actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c, github/codeql-action/upload-sarif@4a8f20f6b9b5114f354129a1e2f391d75bfd640a. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Upload code scanning results to GitHub
CodeQL Action v2 will be deprecated on December 5th, 2024. Please update all occurrences of the CodeQL Action in your workflow files to v3. For more information, see https://github.blog/changelog/2024-01-12-code-scanning-deprecation-of-codeql-action-v2/
|
Loading