Skip to content

Commit

Permalink
Make PHPStan happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Sep 12, 2024
1 parent a161b16 commit 92c6ac9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
"php" : "^8.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.53.0",
"phpstan/phpstan": "^1.10.66",
"phpstan/phpstan-deprecation-rules": "^1.1.4",
"phpstan/phpstan-phpunit": "^1.3.16",
"phpstan/phpstan-strict-rules": "^1.5.3",
"phpunit/phpunit": "^10.5.15 || ^11.1.1",
"symfony/var-dumper": "^6.4.6"
"friendsofphp/php-cs-fixer": "^3.64.0",
"phpstan/phpstan": "^1.12.3",
"phpstan/phpstan-deprecation-rules": "^1.2.1",
"phpstan/phpstan-phpunit": "^1.4.0",
"phpstan/phpstan-strict-rules": "^1.6.0",
"phpunit/phpunit": "^10.5.15 || ^11.3.4",
"symfony/var-dumper": "^6.4.11"
},
"autoload": {
"psr-4": {
Expand Down
8 changes: 4 additions & 4 deletions src/Duration.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public static function fromChronoString(string $duration): self
'minute' => $matches['minute'],
'second' => $matches['second'],
'fraction' => $matches['fraction'] ?? null,
'sign' => $matches['sign'] ?? null,
'sign' => $matches['sign'],
]);
}

Expand All @@ -153,11 +153,11 @@ public static function fromTimeString(string $duration): self
}

return self::fromUnits([
'hour' => $matches['hour'] ?? null,
'minute' => $matches['minute'] ?? null,
'hour' => $matches['hour'],
'minute' => $matches['minute'],
'second' => $matches['second'] ?? '0',
'fraction' => $matches['fraction'] ?? null,
'sign' => $matches['sign'] ?? null,
'sign' => $matches['sign'],
]);
}

Expand Down

0 comments on commit 92c6ac9

Please sign in to comment.