Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Fix phpcs #70

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generator/src/OperatorClassGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function createClass(GeneratorDefinition $definition, OperatorDefinition
if ($argument->variadicMin > 0) {
$constuctor->addBody(<<<PHP
if (\count(\${$argument->name}) < {$argument->variadicMin}) {
throw new \InvalidArgumentException(\sprintf('Expected at least %d values for \${$argument->name}, got %d.', {$argument->variadicMin}, \count(\${$argument->name})));
throw new InvalidArgumentException(\sprintf('Expected at least %d values for \${$argument->name}, got %d.', {$argument->variadicMin}, \count(\${$argument->name})));
}

PHP);
Expand Down