File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ Yii Framework 2 Change Log
22
22
- Bug #20140 : Fix compatibility with PHP 8.4: calling ` session_set_save_handler() ` (Izumi-kun)
23
23
- New #20185 : Add ` BackedEnum ` support to ` AttributeTypecastBehavior ` (briedis)
24
24
- Bug #17365 : Fix "Trying to access array offset on null" warning (xcopy)
25
+ - Bug #20296 : Fix broken enum test (briedis)
25
26
26
27
2.0.51 July 18, 2024
27
28
--------------------
Original file line number Diff line number Diff line change @@ -1539,7 +1539,7 @@ public function testBindValuesSupportsEnums()
1539
1539
$ command = $ db ->createCommand ();
1540
1540
1541
1541
$ command ->setSql ('SELECT :p1 ' )->bindValues ([':p1 ' => enums \Status::Active]);
1542
- $ this ->assertSame ('ACTIVE ' , $ command ->params [':p1 ' ]);
1542
+ $ this ->assertSame ('Active ' , $ command ->params [':p1 ' ]);
1543
1543
1544
1544
$ command ->setSql ('SELECT :p1 ' )->bindValues ([':p1 ' => enums \StatusTypeString::Active]);
1545
1545
$ this ->assertSame ('active ' , $ command ->params [':p1 ' ]);
You can’t perform that action at this time.
0 commit comments