Skip to content

Commit 539fd1d

Browse files
committed
Fix up PHPStan
1 parent 2f95de3 commit 539fd1d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
},
2121
"require-dev": {
2222
"php-collective/code-sniffer": "^0.2.1",
23-
"phpstan/phpstan": "^1.0.0",
24-
"phpunit/phpunit": "^10.3.0"
23+
"phpstan/phpstan": "^2.0.0",
24+
"phpunit/phpunit": "^11.0.0"
2525
},
2626
"minimum-stability": "stable",
2727
"prefer-stable": true,

phpstan.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ parameters:
22
level: 8
33
paths:
44
- src/
5-
checkMissingIterableValueType: false
65
ignoreErrors:
6+
- identifier: missingType.iterableValue
77
- '#Unsafe usage of new static\(\).#'
8+
- '#expects numeric-string, string given.#'

src/Decimal.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function lessThan(self|string|float|int $value): bool
200200
*/
201201
public function greaterThanOrEquals(self|string|float|int $value): bool
202202
{
203-
return ($this->compareTo($value) >= 0);
203+
return $this->compareTo($value) >= 0;
204204
}
205205

206206
/**
@@ -222,7 +222,7 @@ public function greatherThanOrEquals(self|string|float|int $value): bool
222222
*/
223223
public function lessThanOrEquals(self|string|float|int $value): bool
224224
{
225-
return ($this->compareTo($value) <= 0);
225+
return $this->compareTo($value) <= 0;
226226
}
227227

228228
/**

0 commit comments

Comments
 (0)