@@ -41,7 +41,7 @@ abstract public static function fromString(string $uid): static;
4141 public static function fromBinary (string $ uid ): static
4242 {
4343 if (16 !== \strlen ($ uid )) {
44- throw new InvalidArgumentException ('Invalid binary uid provided. ' );
44+ throw new InvalidArgumentException ($ uid , 'Invalid binary uid provided. ' );
4545 }
4646
4747 return static ::fromString ($ uid );
@@ -53,7 +53,7 @@ public static function fromBinary(string $uid): static
5353 public static function fromBase58 (string $ uid ): static
5454 {
5555 if (22 !== \strlen ($ uid )) {
56- throw new InvalidArgumentException ('Invalid base-58 uid provided. ' );
56+ throw new InvalidArgumentException ($ uid , 'Invalid base-58 uid provided. ' );
5757 }
5858
5959 return static ::fromString ($ uid );
@@ -65,7 +65,7 @@ public static function fromBase58(string $uid): static
6565 public static function fromBase32 (string $ uid ): static
6666 {
6767 if (26 !== \strlen ($ uid )) {
68- throw new InvalidArgumentException ('Invalid base-32 uid provided. ' );
68+ throw new InvalidArgumentException ($ uid , 'Invalid base-32 uid provided. ' );
6969 }
7070
7171 return static ::fromString ($ uid );
@@ -79,7 +79,7 @@ public static function fromBase32(string $uid): static
7979 public static function fromRfc4122 (string $ uid ): static
8080 {
8181 if (36 !== \strlen ($ uid )) {
82- throw new InvalidArgumentException ('Invalid RFC4122 uid provided. ' );
82+ throw new InvalidArgumentException ($ uid , 'Invalid RFC4122 uid provided. ' );
8383 }
8484
8585 return static ::fromString ($ uid );
0 commit comments