You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->expectExceptionMessage('The option "foo" with value array is expected to be of type "int[]", but one of the elements is of type "DateTime".');
780
+
$this->expectExceptionMessage('The option "foo" with value array is expected to be of type "int[]", but one of the elements is of type "DateTimeImmutable".');
$this->expectExceptionMessage('The option "foo" with value array is expected to be of type "int[]", but one of the elements is of type "stdClass|array|DateTime".');
800
+
$this->expectExceptionMessage('The option "foo" with value array is expected to be of type "int[]", but one of the elements is of type "stdClass|array|DateTimeImmutable".');
801
801
$this->resolver->setDefined('foo');
802
802
$this->resolver->setAllowedTypes('foo', 'int[]');
803
803
$values = range(1, 5);
804
804
$values[] = new \stdClass();
805
805
$values[] = [];
806
-
$values[] = new \DateTime();
806
+
$values[] = new \DateTimeImmutable();
807
807
$values[] = 123;
808
808
809
809
$this->resolver->resolve(['foo' => $values]);
@@ -893,12 +893,12 @@ public function testResolveSucceedsIfInstanceOfClass()
0 commit comments