File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 33## 2.5.1 under development
44
55- Bug #776 : Take ` PropertyTranslatorProviderInterface ` into account during context validation (@vjik )
6+ - Enh #???: Default Intl locale in tests (@batyrmastyr )
7+ - Enh #???: Support validation of uninitialized properties (@batyrmastyr )
68
79## 2.5.0 July 19, 2025
810
Original file line number Diff line number Diff line change 1515>
1616 <php >
1717 <ini name =" error_reporting" value =" -1" />
18+ <ini name =" intl.default_locale" value =" en" />
1819 </php >
1920
2021 <testsuites >
Original file line number Diff line number Diff line change @@ -178,4 +178,18 @@ public function testDisabledCache(): void
178178 $ this ->assertNotSame ($ rules , $ parser ->getRules ());
179179 $ this ->assertArrayNotHasKey ($ cacheKey , $ cacheProperty ->getValue ());
180180 }
181+
182+ public function testUninitializedProperty (): void
183+ {
184+ $ parser = new ObjectParser (new class () {
185+ public int $ a = 4 ;
186+ public int $ uninitialized ;
187+ });
188+
189+ $ this ->assertNull ($ parser ->getPropertyValue ('not-existing ' ));
190+ $ this ->assertSame (4 , $ parser ->getPropertyValue ('a ' ));
191+ $ this ->assertNull ($ parser ->getPropertyValue ('uninitialized ' ));
192+
193+ $ this ->assertSame (['a ' => 4 ], $ parser ->getData ());;
194+ }
181195}
You can’t perform that action at this time.
0 commit comments