diff --git a/composer.json b/composer.json index c6dddea..3d3dc7c 100644 --- a/composer.json +++ b/composer.json @@ -20,13 +20,13 @@ "pimcore/pimcore": "^10.5 || ^11.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.11", - "jangregor/phpstan-prophecy": "^1.0", - "phpspec/prophecy-phpunit": "^2.0", - "phpstan/phpstan": "^1.8", - "phpstan/phpstan-phpunit": "^1.1", - "phpstan/phpstan-symfony": "^1.2", - "phpunit/phpunit": "^9.3", + "friendsofphp/php-cs-fixer": "^3.62", + "jangregor/phpstan-prophecy": "^1.0.2", + "phpspec/prophecy-phpunit": "^2.2", + "phpstan/phpstan": "^1.11.10", + "phpstan/phpstan-phpunit": "^1.4", + "phpstan/phpstan-symfony": "^1.4.7", + "phpunit/phpunit": "^9.6.20", "teamneusta/pimcore-testing-framework": "^0.11.1" }, "extra": { diff --git a/phpstan.neon b/phpstan.neon index 1f52c1b..d109b9d 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -7,5 +7,3 @@ parameters: bootstrapFiles: - vendor/pimcore/pimcore/stubs/dynamic-constants.php - - checkGenericClassInNonGenericObjectType: false diff --git a/src/EditableDialogBox/EditableItem/NumericItem.php b/src/EditableDialogBox/EditableItem/NumericItem.php index 26f3fe7..4605c66 100644 --- a/src/EditableDialogBox/EditableItem/NumericItem.php +++ b/src/EditableDialogBox/EditableItem/NumericItem.php @@ -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);