Skip to content

Commit d94d32b

Browse files
committed
refactor: make IntId constructor final and update exception message format
1 parent 5969ac9 commit d94d32b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contexts/Shared/ValueObjects/IntId.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
abstract class IntId
88
{
9-
private function __construct(private readonly int $value)
9+
final private function __construct(private readonly int $value)
1010
{
1111
if ($value < 0) {
12-
throw new \InvalidArgumentException("Invalid ID value");
12+
throw new \InvalidArgumentException('Invalid ID value');
1313
}
1414
}
1515

0 commit comments

Comments
 (0)