Skip to content

Commit

Permalink
Merge branch 'master' into feature/mask-vars-wildcards
Browse files Browse the repository at this point in the history
  • Loading branch information
xcopy authored Dec 10, 2024
2 parents 6cb2c8b + dd4efda commit 3b0f2e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions framework/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Yii Framework 2 Change Log
- New #20185: Add `BackedEnum` support to `AttributeTypecastBehavior` (briedis)
- Bug #17365: Fix "Trying to access array offset on null" warning (xcopy)
- Enh #20295: An ability to have wildcards in `yii\log\Target::$maskVars` array (xcopy)
- Bug #20296: Fix broken enum test (briedis)

2.0.51 July 18, 2024
--------------------
Expand Down
2 changes: 1 addition & 1 deletion tests/framework/db/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,7 @@ public function testBindValuesSupportsEnums()
$command = $db->createCommand();

$command->setSql('SELECT :p1')->bindValues([':p1' => enums\Status::Active]);
$this->assertSame('ACTIVE', $command->params[':p1']);
$this->assertSame('Active', $command->params[':p1']);

$command->setSql('SELECT :p1')->bindValues([':p1' => enums\StatusTypeString::Active]);
$this->assertSame('active', $command->params[':p1']);
Expand Down

0 comments on commit 3b0f2e1

Please sign in to comment.