66
77class InvalidArgumentException extends \InvalidArgumentException implements CollectionExceptionInterface, AssertionFailedException
88{
9+ /** @phpstan-param mixed[] $constraints */
10+ public function __construct (
11+ string $ message ,
12+ ?int $ code = null ,
13+ private ?string $ propertyPath = null ,
14+ private mixed $ value = null ,
15+ private array $ constraints = [],
16+ ?\Throwable $ previous = null ,
17+ ) {
18+ parent ::__construct ($ message , (int ) $ code , $ previous );
19+ }
20+
921 public static function forFailedAssertion (AssertionFailedException $ e ): self
1022 {
1123 return new static (
@@ -18,18 +30,6 @@ public static function forFailedAssertion(AssertionFailedException $e): self
1830 );
1931 }
2032
21- /** @phpstan-param mixed[] $constraints */
22- public function __construct (
23- string $ message ,
24- int $ code = null ,
25- private ?string $ propertyPath = null ,
26- private mixed $ value = null ,
27- private array $ constraints = [],
28- \Throwable $ previous = null ,
29- ) {
30- parent ::__construct ($ message , (int ) $ code , $ previous );
31- }
32-
3333 public function getPropertyPath (): ?string
3434 {
3535 return $ this ->propertyPath ;
0 commit comments