Skip to content

Commit

Permalink
fix: checkstyle and phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
mike4git committed Aug 10, 2024
1 parent 8cf1bdc commit 18b28fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ parameters:

bootstrapFiles:
- vendor/pimcore/pimcore/stubs/dynamic-constants.php

checkGenericClassInNonGenericObjectType: false
2 changes: 1 addition & 1 deletion src/EditableDialogBox/EditableItem/NumericItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(string $name, int $min, int $max)
public function setDefaultValue(int $value): static
{
if ($this->min > $value || $value > $this->max) {
throw new \InvalidArgumentException(sprintf('Default value "%d" is out of bounds: [%d,%d]', $value, $this->min, $this->max));
throw new \InvalidArgumentException(\sprintf('Default value "%d" is out of bounds: [%d,%d]', $value, $this->min, $this->max));
}

return $this->addConfig('defaultValue', $value);
Expand Down

0 comments on commit 18b28fb

Please sign in to comment.