Skip to content

Commit

Permalink
fix: static analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
phanan committed Oct 23, 2024
1 parent 0712630 commit f0438be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"test": "phpunit tests",
"cs": "pint --test",
"cs:fix": "pint",
"analyze": "phpstan analyse"
"analyze": "phpstan analyse --memory-limit=1G"
},
"post-install-cmd": [
"composer dump-autoload"
Expand Down
2 changes: 1 addition & 1 deletion src/Values/EpisodeMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private static function parseDuration(string|int|null $duration): ?int
? match (sscanf($duration, '%d:%d:%d', $x, $y, $z)) {
1 => $x,
2 => $x * 60 + $y,
3 => $x * 3600 + $y * 60 + $z,
3 => $x * 3600 + $y * 60 + $z, // @phpstan-ignore-line
default => throw new InvalidDurationException($duration),
}
: null;
Expand Down

0 comments on commit f0438be

Please sign in to comment.