Skip to content

RegularParser now properly takes into account escaped tokens #79

RegularParser now properly takes into account escaped tokens

RegularParser now properly takes into account escaped tokens #79

Triggered via pull request January 23, 2026 20:04
@thundererthunderer
synchronize #120
issue119
Status Failure
Total duration 31s
Artifacts

test.yaml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

65 errors
test (8.6, ubuntu-latest, false)
Process completed with exit code 2.
test (8.6, ubuntu-latest, false)
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires vimeo/psalm >=5.0 -> satisfiable by vimeo/psalm[5.0.0, ..., 5.26.1, 6.0.0, ..., 6.14.3]. - vimeo/psalm[5.0.0, ..., 5.13.1] require php ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 -> your php version (8.6.0-dev) does not satisfy that requirement. - vimeo/psalm[5.14.0, ..., 5.26.1] require php ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 -> your php version (8.6.0-dev) does not satisfy that requirement. - vimeo/psalm[6.0.0, ..., 6.5.0] require php ~8.1.17 || ~8.2.4 || ~8.3.0 || ~8.4.0 -> your php version (8.6.0-dev) does not satisfy that requirement. - vimeo/psalm[6.5.1, ..., 6.13.1] require php ~8.1.31 || ~8.2.27 || ~8.3.16 || ~8.4.3 -> your php version (8.6.0-dev) does not satisfy that requirement. - vimeo/psalm[6.14.0, ..., 6.14.3] require php ~8.1.31 || ~8.2.27 || ~8.3.16 || ~8.4.3 || ~8.5.0 -> your php version (8.6.0-dev) does not satisfy that requirement.
test (8.6, ubuntu-latest, true)
The strategy configuration was canceled because "test._8_6_ubuntu-latest_false" failed
test (8.6, ubuntu-latest, true)
Process completed with exit code 255.
test (8.6, ubuntu-latest, true)
Process completed with exit code 2.
test (8.6, ubuntu-latest, true)
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires vimeo/psalm >=5.0 -> satisfiable by vimeo/psalm[5.0.0, ..., 5.26.1, 6.0.0, ..., 6.14.3]. - vimeo/psalm[5.0.0, ..., 5.13.1] require php ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 -> your php version (8.6.0-dev) does not satisfy that requirement. - vimeo/psalm[5.14.0, ..., 5.26.1] require php ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 -> your php version (8.6.0-dev) does not satisfy that requirement. - vimeo/psalm[6.0.0, ..., 6.5.0] require php ~8.1.17 || ~8.2.4 || ~8.3.0 || ~8.4.0 -> your php version (8.6.0-dev) does not satisfy that requirement. - vimeo/psalm[6.5.1, ..., 6.13.1] require php ~8.1.31 || ~8.2.27 || ~8.3.16 || ~8.4.3 -> your php version (8.6.0-dev) does not satisfy that requirement. - vimeo/psalm[6.14.0, ..., 6.14.3] require php ~8.1.31 || ~8.2.27 || ~8.3.16 || ~8.4.3 || ~8.5.0 -> your php version (8.6.0-dev) does not satisfy that requirement.
test (7.4, ubuntu-latest, false)
The strategy configuration was canceled because "test._8_6_ubuntu-latest_false" failed
test (7.4, ubuntu-latest, false)
The operation was canceled.
test (8.2, ubuntu-latest, false)
The strategy configuration was canceled because "test._8_6_ubuntu-latest_false" failed
PossiblyNullPropertyAssignmentValue: src/Parser/RegularParser.php#L288
src/Parser/RegularParser.php:288:31: PossiblyNullPropertyAssignmentValue: $this->position with non-nullable declared type 'int' cannot be assigned nullable type 'int|null' (see https://psalm.dev/148)
PossiblyNullArrayOffset: src/Parser/RegularParser.php#L273
src/Parser/RegularParser.php:273:27: PossiblyNullArrayOffset: Cannot access value on variable $this->tokens using possibly null offset int|null (see https://psalm.dev/125)
PossiblyNullOperand: src/Parser/RegularParser.php#L272
src/Parser/RegularParser.php:272:51: PossiblyNullOperand: Left operand cannot be nullable, got int|null (see https://psalm.dev/080)
MissingOverrideAttribute: src/Parser/RegularParser.php#L54
src/Parser/RegularParser.php:54:5: MissingOverrideAttribute: Method Thunder\Shortcode\Parser\RegularParser::parse should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/Parser/RegexParser.php#L42
src/Parser/RegexParser.php:42:5: MissingOverrideAttribute: Method Thunder\Shortcode\Parser\RegexParser::parse should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/HandlerContainer/ImmutableHandlerContainer.php#L25
src/HandlerContainer/ImmutableHandlerContainer.php:25:5: MissingOverrideAttribute: Method Thunder\Shortcode\HandlerContainer\ImmutableHandlerContainer::get should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/HandlerContainer/HandlerContainer.php#L96
src/HandlerContainer/HandlerContainer.php:96:5: MissingOverrideAttribute: Method Thunder\Shortcode\HandlerContainer\HandlerContainer::get should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/EventContainer/EventContainer.php#L42
src/EventContainer/EventContainer.php:42:5: MissingOverrideAttribute: Method Thunder\Shortcode\EventContainer\EventContainer::getlisteners should have the "Override" attribute (see https://psalm.dev/358)
ClassMustBeFinal: src/Event/ReplaceShortcodesEvent.php#L14
src/Event/ReplaceShortcodesEvent.php:14:7: ClassMustBeFinal: Class Thunder\Shortcode\Event\ReplaceShortcodesEvent is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)
ClassMustBeFinal: src/Event/FilterShortcodesEvent.php#L14
src/Event/FilterShortcodesEvent.php:14:7: ClassMustBeFinal: Class Thunder\Shortcode\Event\FilterShortcodesEvent is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)
test (8.3, ubuntu-latest, false)
The strategy configuration was canceled because "test._8_6_ubuntu-latest_false" failed
PossiblyNullPropertyAssignmentValue: src/Parser/RegularParser.php#L288
src/Parser/RegularParser.php:288:31: PossiblyNullPropertyAssignmentValue: $this->position with non-nullable declared type 'int' cannot be assigned nullable type 'int|null' (see https://psalm.dev/148)
PossiblyNullArrayOffset: src/Parser/RegularParser.php#L273
src/Parser/RegularParser.php:273:27: PossiblyNullArrayOffset: Cannot access value on variable $this->tokens using possibly null offset int|null (see https://psalm.dev/125)
PossiblyNullOperand: src/Parser/RegularParser.php#L272
src/Parser/RegularParser.php:272:51: PossiblyNullOperand: Left operand cannot be nullable, got int|null (see https://psalm.dev/080)
MissingOverrideAttribute: src/Parser/RegularParser.php#L54
src/Parser/RegularParser.php:54:5: MissingOverrideAttribute: Method Thunder\Shortcode\Parser\RegularParser::parse should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/Parser/RegexParser.php#L42
src/Parser/RegexParser.php:42:5: MissingOverrideAttribute: Method Thunder\Shortcode\Parser\RegexParser::parse should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/HandlerContainer/ImmutableHandlerContainer.php#L25
src/HandlerContainer/ImmutableHandlerContainer.php:25:5: MissingOverrideAttribute: Method Thunder\Shortcode\HandlerContainer\ImmutableHandlerContainer::get should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/HandlerContainer/HandlerContainer.php#L96
src/HandlerContainer/HandlerContainer.php:96:5: MissingOverrideAttribute: Method Thunder\Shortcode\HandlerContainer\HandlerContainer::get should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/EventContainer/EventContainer.php#L42
src/EventContainer/EventContainer.php:42:5: MissingOverrideAttribute: Method Thunder\Shortcode\EventContainer\EventContainer::getlisteners should have the "Override" attribute (see https://psalm.dev/358)
ClassMustBeFinal: src/Event/ReplaceShortcodesEvent.php#L14
src/Event/ReplaceShortcodesEvent.php:14:7: ClassMustBeFinal: Class Thunder\Shortcode\Event\ReplaceShortcodesEvent is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)
ClassMustBeFinal: src/Event/FilterShortcodesEvent.php#L14
src/Event/FilterShortcodesEvent.php:14:7: ClassMustBeFinal: Class Thunder\Shortcode\Event\FilterShortcodesEvent is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)
test (8.0, ubuntu-latest, false)
The strategy configuration was canceled because "test._8_6_ubuntu-latest_false" failed
test (8.0, ubuntu-latest, false)
The operation was canceled.
test (8.1, ubuntu-latest, false)
The strategy configuration was canceled because "test._8_6_ubuntu-latest_false" failed
PossiblyNullPropertyAssignmentValue: src/Parser/RegularParser.php#L288
src/Parser/RegularParser.php:288:31: PossiblyNullPropertyAssignmentValue: $this->position with non-nullable declared type 'int' cannot be assigned nullable type 'int|null' (see https://psalm.dev/148)
PossiblyNullArrayOffset: src/Parser/RegularParser.php#L273
src/Parser/RegularParser.php:273:27: PossiblyNullArrayOffset: Cannot access value on variable $this->tokens using possibly null offset int|null (see https://psalm.dev/125)
PossiblyNullOperand: src/Parser/RegularParser.php#L272
src/Parser/RegularParser.php:272:51: PossiblyNullOperand: Left operand cannot be nullable, got int|null (see https://psalm.dev/080)
MissingOverrideAttribute: src/Parser/RegularParser.php#L54
src/Parser/RegularParser.php:54:5: MissingOverrideAttribute: Method Thunder\Shortcode\Parser\RegularParser::parse should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/Parser/RegexParser.php#L42
src/Parser/RegexParser.php:42:5: MissingOverrideAttribute: Method Thunder\Shortcode\Parser\RegexParser::parse should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/HandlerContainer/ImmutableHandlerContainer.php#L25
src/HandlerContainer/ImmutableHandlerContainer.php:25:5: MissingOverrideAttribute: Method Thunder\Shortcode\HandlerContainer\ImmutableHandlerContainer::get should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/HandlerContainer/HandlerContainer.php#L96
src/HandlerContainer/HandlerContainer.php:96:5: MissingOverrideAttribute: Method Thunder\Shortcode\HandlerContainer\HandlerContainer::get should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/EventContainer/EventContainer.php#L42
src/EventContainer/EventContainer.php:42:5: MissingOverrideAttribute: Method Thunder\Shortcode\EventContainer\EventContainer::getlisteners should have the "Override" attribute (see https://psalm.dev/358)
ClassMustBeFinal: src/Event/ReplaceShortcodesEvent.php#L14
src/Event/ReplaceShortcodesEvent.php:14:7: ClassMustBeFinal: Class Thunder\Shortcode\Event\ReplaceShortcodesEvent is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)
ClassMustBeFinal: src/Event/FilterShortcodesEvent.php#L14
src/Event/FilterShortcodesEvent.php:14:7: ClassMustBeFinal: Class Thunder\Shortcode\Event\FilterShortcodesEvent is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)
test (8.4, ubuntu-latest, false)
The strategy configuration was canceled because "test._8_6_ubuntu-latest_false" failed
PossiblyNullPropertyAssignmentValue: src/Parser/RegularParser.php#L288
src/Parser/RegularParser.php:288:31: PossiblyNullPropertyAssignmentValue: $this->position with non-nullable declared type 'int' cannot be assigned nullable type 'int|null' (see https://psalm.dev/148)
PossiblyNullArrayOffset: src/Parser/RegularParser.php#L273
src/Parser/RegularParser.php:273:27: PossiblyNullArrayOffset: Cannot access value on variable $this->tokens using possibly null offset int|null (see https://psalm.dev/125)
PossiblyNullOperand: src/Parser/RegularParser.php#L272
src/Parser/RegularParser.php:272:51: PossiblyNullOperand: Left operand cannot be nullable, got int|null (see https://psalm.dev/080)
MissingOverrideAttribute: src/Parser/RegularParser.php#L54
src/Parser/RegularParser.php:54:5: MissingOverrideAttribute: Method Thunder\Shortcode\Parser\RegularParser::parse should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/Parser/RegexParser.php#L42
src/Parser/RegexParser.php:42:5: MissingOverrideAttribute: Method Thunder\Shortcode\Parser\RegexParser::parse should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/HandlerContainer/ImmutableHandlerContainer.php#L25
src/HandlerContainer/ImmutableHandlerContainer.php:25:5: MissingOverrideAttribute: Method Thunder\Shortcode\HandlerContainer\ImmutableHandlerContainer::get should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/HandlerContainer/HandlerContainer.php#L96
src/HandlerContainer/HandlerContainer.php:96:5: MissingOverrideAttribute: Method Thunder\Shortcode\HandlerContainer\HandlerContainer::get should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/EventContainer/EventContainer.php#L42
src/EventContainer/EventContainer.php:42:5: MissingOverrideAttribute: Method Thunder\Shortcode\EventContainer\EventContainer::getlisteners should have the "Override" attribute (see https://psalm.dev/358)
ClassMustBeFinal: src/Event/ReplaceShortcodesEvent.php#L14
src/Event/ReplaceShortcodesEvent.php:14:7: ClassMustBeFinal: Class Thunder\Shortcode\Event\ReplaceShortcodesEvent is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)
ClassMustBeFinal: src/Event/FilterShortcodesEvent.php#L14
src/Event/FilterShortcodesEvent.php:14:7: ClassMustBeFinal: Class Thunder\Shortcode\Event\FilterShortcodesEvent is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)
test (8.5, ubuntu-latest, false)
The strategy configuration was canceled because "test._8_6_ubuntu-latest_false" failed
PossiblyNullPropertyAssignmentValue: src/Parser/RegularParser.php#L288
src/Parser/RegularParser.php:288:31: PossiblyNullPropertyAssignmentValue: $this->position with non-nullable declared type 'int' cannot be assigned nullable type 'int|null' (see https://psalm.dev/148)
PossiblyNullArrayOffset: src/Parser/RegularParser.php#L273
src/Parser/RegularParser.php:273:27: PossiblyNullArrayOffset: Cannot access value on variable $this->tokens using possibly null offset int|null (see https://psalm.dev/125)
PossiblyNullOperand: src/Parser/RegularParser.php#L272
src/Parser/RegularParser.php:272:51: PossiblyNullOperand: Left operand cannot be nullable, got int|null (see https://psalm.dev/080)
MissingOverrideAttribute: src/Parser/RegularParser.php#L54
src/Parser/RegularParser.php:54:5: MissingOverrideAttribute: Method Thunder\Shortcode\Parser\RegularParser::parse should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/Parser/RegexParser.php#L42
src/Parser/RegexParser.php:42:5: MissingOverrideAttribute: Method Thunder\Shortcode\Parser\RegexParser::parse should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/HandlerContainer/ImmutableHandlerContainer.php#L25
src/HandlerContainer/ImmutableHandlerContainer.php:25:5: MissingOverrideAttribute: Method Thunder\Shortcode\HandlerContainer\ImmutableHandlerContainer::get should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/HandlerContainer/HandlerContainer.php#L96
src/HandlerContainer/HandlerContainer.php:96:5: MissingOverrideAttribute: Method Thunder\Shortcode\HandlerContainer\HandlerContainer::get should have the "Override" attribute (see https://psalm.dev/358)
MissingOverrideAttribute: src/EventContainer/EventContainer.php#L42
src/EventContainer/EventContainer.php:42:5: MissingOverrideAttribute: Method Thunder\Shortcode\EventContainer\EventContainer::getlisteners should have the "Override" attribute (see https://psalm.dev/358)
ClassMustBeFinal: src/Event/ReplaceShortcodesEvent.php#L14
src/Event/ReplaceShortcodesEvent.php:14:7: ClassMustBeFinal: Class Thunder\Shortcode\Event\ReplaceShortcodesEvent is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)
ClassMustBeFinal: src/Event/FilterShortcodesEvent.php#L14
src/Event/FilterShortcodesEvent.php:14:7: ClassMustBeFinal: Class Thunder\Shortcode\Event\FilterShortcodesEvent is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)