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 method "class@anonymous::getUninitialized()" returned "null", but expected type "array". Did you forget to initialize a property or to make the return type nullable using "?array"?');
150
150
151
-
$object = newclass()
152
-
{
151
+
$object = newclass() {
153
152
private$uninitialized;
154
153
155
154
publicfunctiongetUninitialized(): array
@@ -166,8 +165,7 @@ public function testGetValueThrowsExceptionIfUninitializedNotNullablePropertyWit
$this->expectExceptionMessage('The property "class@anonymous::$uninitialized" is not readable because it is typed "string". You should initialize it or declare a default value instead.');
168
167
169
-
$object = newclass()
170
-
{
168
+
$object = newclass() {
171
169
privatestring$uninitialized;
172
170
173
171
publicfunctiongetUninitialized(): string
@@ -184,8 +182,7 @@ public function testGetValueThrowsExceptionIfUninitializedPropertyOfAnonymousCla
$this->expectExceptionMessage('The property "class@anonymous::$uninitialized" is not readable because it is typed "string". You should initialize it or declare a default value instead.');
186
184
187
-
$object = newclass()
188
-
{
185
+
$object = newclass() {
189
186
publicstring$uninitialized;
190
187
};
191
188
@@ -213,8 +210,7 @@ public function testGetValueThrowsExceptionIfUninitializedPropertyWithGetterOfAn
$this->expectExceptionMessage('The method "stdClass@anonymous::getUninitialized()" returned "null", but expected type "array". Did you forget to initialize a property or to make the return type nullable using "?array"?');
215
212
216
-
$object = newclass() extends \stdClass
217
-
{
213
+
$object = newclass() extends \stdClass {
218
214
private$uninitialized;
219
215
220
216
publicfunctiongetUninitialized(): array
@@ -231,8 +227,7 @@ public function testGetValueThrowsExceptionIfUninitializedPropertyWithGetterOfAn
$this->expectExceptionMessage('The method "Symfony\Component\PropertyAccess\Tests\Fixtures\UninitializedPrivateProperty@anonymous::getUninitialized()" returned "null", but expected type "array". Did you forget to initialize a property or to make the return type nullable using "?array"?');
$this->expectExceptionMessage('The property "Symfony\Component\PropertyAccess\Tests\Fixtures\UninitializedObjectProperty::$uninitialized" is not readable because it is typed "DateTimeInterface". You should initialize it or declare a default value instead.');
$this->expectExceptionMessage('The property "Symfony\Component\PropertyAccess\Tests\Fixtures\UninitializedObjectProperty::$privateUninitialized" is not readable because it is typed "DateTimeInterface". You should initialize it or declare a default value instead.');
0 commit comments