Skip to content

Commit

Permalink
Merge pull request #20 from teamneusta/fix/cs-phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
jdreesen authored Aug 12, 2024
2 parents 8cf1bdc + 259c600 commit 47fed54
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
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 47fed54

Please sign in to comment.