Skip to content

Make Token::$value and Token::$keyword types more strict #860

Make Token::$value and Token::$keyword types more strict

Make Token::$value and Token::$keyword types more strict #860

Triggered via pull request January 23, 2024 21:02
Status Success
Total duration 14s
Artifacts

lint-docs.yml

on: pull_request
lint-docs
5s
lint-docs
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint-docs: src/Components/GroupKeyword.php#L17
The hint on "type" at @var is invalid: "'ASC'|'DESC'|null" on "PhpMyAdmin\SqlParser\Components\GroupKeyword::$type"
lint-docs: src/Parsers/UnionKeywords.php#L36
Invalid @param tag on "buildAll": "list<array{string|Stringable,string|Stringable}> $component the component to be built" on "PhpMyAdmin\SqlParser\Parsers\UnionKeywords::buildAll"
lint-docs: src/Parsers/UnionKeywords.php#L36
The method "buildAll" has "1" invalid @param tags. on "PhpMyAdmin\SqlParser\Parsers\UnionKeywords::buildAll"
lint-docs: src/Statement.php#L60
The hint on "clauses" at @var is invalid: "array<string, array{non-empty-string, int-mask-of<self::ADD_*>}>" on "PhpMyAdmin\SqlParser\Statement::$clauses"
lint-docs: src/Statement.php#L399
The hint on "getClauses" at @return is invalid: "array<string, array{non-empty-string, int-mask-of<Statement::ADD_*>}>" on "PhpMyAdmin\SqlParser\Statement::getClauses"
lint-docs: src/Statements/DeleteStatement.php#L72
The hint on "clauses" at @var is invalid: "array<string, array{non-empty-string, int-mask-of<self::ADD_*>}>" on "PhpMyAdmin\SqlParser\Statements\DeleteStatement::$clauses"
lint-docs: src/Statements/DropStatement.php#L47
The hint on "clauses" at @var is invalid: "array<string, array{non-empty-string, int-mask-of<self::ADD_*>}>" on "PhpMyAdmin\SqlParser\Statements\DropStatement::$clauses"
lint-docs: src/Statements/SelectStatement.php#L88
The hint on "clauses" at @var is invalid: "array<string, array{non-empty-string, int-mask-of<self::ADD_*>}>" on "PhpMyAdmin\SqlParser\Statements\SelectStatement::$clauses"
lint-docs: src/Statements/SelectStatement.php#L325
The hint on "getClauses" at @return is invalid: "array<string, array{non-empty-string, int-mask-of<Statement::ADD_*>}>" on "PhpMyAdmin\SqlParser\Statements\SelectStatement::getClauses"
lint-docs: src/Statements/SetStatement.php#L26
The hint on "clauses" at @var is invalid: "array<string, array{non-empty-string, int-mask-of<self::ADD_*>}>" on "PhpMyAdmin\SqlParser\Statements\SetStatement::$clauses"