diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 3006b9b..cc55d91 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,5 +1,5 @@ - + ExpressionParser::OPERATOR_LEFT diff --git a/src/Operator/NotSameAsBinary.php b/src/Operator/NotSameAsBinary.php index 016fd58..9f83309 100644 --- a/src/Operator/NotSameAsBinary.php +++ b/src/Operator/NotSameAsBinary.php @@ -7,11 +7,6 @@ class NotSameAsBinary extends AbstractBinary { - public function compile(Compiler $compiler): void - { - parent::compile($compiler); - } - public function operator(Compiler $compiler): Compiler { return $compiler->raw('!=='); diff --git a/src/Operator/SameAsBinary.php b/src/Operator/SameAsBinary.php index eba1fbc..00662ae 100644 --- a/src/Operator/SameAsBinary.php +++ b/src/Operator/SameAsBinary.php @@ -7,11 +7,6 @@ class SameAsBinary extends AbstractBinary { - public function compile(Compiler $compiler): void - { - parent::compile($compiler); - } - public function operator(Compiler $compiler): Compiler { return $compiler->raw('==='); diff --git a/src/PhpSyntaxExtension.php b/src/PhpSyntaxExtension.php index b418c54..42bb8be 100644 --- a/src/PhpSyntaxExtension.php +++ b/src/PhpSyntaxExtension.php @@ -35,7 +35,7 @@ public function getTokenParsers(): array ]; } - public function getFilters() + public function getFilters(): array { return [ new TwigFilter('strtotime', function (string $time, ?int $now = null): int { diff --git a/src/TokenParser/BreakNode.php b/src/TokenParser/BreakNode.php index 4f76cbe..28eb8cb 100644 --- a/src/TokenParser/BreakNode.php +++ b/src/TokenParser/BreakNode.php @@ -19,7 +19,7 @@ public function __construct(int $loopNumber, int $lineno, string $tag) $this->loopNumber = $loopNumber; } - public function compile(Compiler $compiler) + public function compile(Compiler $compiler): void { $compiler ->addDebugInfo($this) diff --git a/src/TokenParser/BreakTokenParser.php b/src/TokenParser/BreakTokenParser.php index 791a0fa..3b5e16d 100644 --- a/src/TokenParser/BreakTokenParser.php +++ b/src/TokenParser/BreakTokenParser.php @@ -4,7 +4,7 @@ class BreakTokenParser extends BreakOrContinueTokenParser { - public function getTag() + public function getTag(): string { return 'break'; } diff --git a/src/TokenParser/ContinueNode.php b/src/TokenParser/ContinueNode.php index cfd91c1..d24cff1 100644 --- a/src/TokenParser/ContinueNode.php +++ b/src/TokenParser/ContinueNode.php @@ -19,7 +19,7 @@ public function __construct(int $loopNumber, int $lineno, string $tag) $this->loopNumber = $loopNumber; } - public function compile(Compiler $compiler) + public function compile(Compiler $compiler): void { $compiler ->addDebugInfo($this) diff --git a/src/TokenParser/ContinueTokenParser.php b/src/TokenParser/ContinueTokenParser.php index e9996cc..40c1fab 100644 --- a/src/TokenParser/ContinueTokenParser.php +++ b/src/TokenParser/ContinueTokenParser.php @@ -4,7 +4,7 @@ class ContinueTokenParser extends BreakOrContinueTokenParser { - public function getTag() + public function getTag(): string { return 'continue'; } diff --git a/vendor-bin/phpcs/composer.json b/vendor-bin/phpcs/composer.json index 6f49675..ff825e2 100644 --- a/vendor-bin/phpcs/composer.json +++ b/vendor-bin/phpcs/composer.json @@ -1,6 +1,6 @@ { "require": { "squizlabs/php_codesniffer": "^3.5", - "slevomat/coding-standard": "^6.0" + "slevomat/coding-standard": "^7.0" } } diff --git a/vendor-bin/phpstan/composer.json b/vendor-bin/phpstan/composer.json index 5d84831..4746394 100644 --- a/vendor-bin/phpstan/composer.json +++ b/vendor-bin/phpstan/composer.json @@ -1,5 +1,5 @@ { "require": { - "phpstan/phpstan": "^0.12" + "phpstan/phpstan": "^1.0" } }