From 45c80d0edbd4e81557099961d010632c2e9fa7a8 Mon Sep 17 00:00:00 2001 From: Sergei Tigrov Date: Sat, 13 Apr 2024 15:02:59 +0700 Subject: [PATCH] Allow scalar values for `Query::select()` (#259) * Update tests according main PR * Fix psalm issue * Apply Rector changes (CI) * Revert "Apply Rector changes (CI)" This reverts commit 0848775c3bfd7c4781a552223e78571cd087713b. * Disable Rector for tests * Add type string to test --------- Co-authored-by: Tigrov Co-authored-by: Sergei Predvoditelev --- tests/QueryBuilderTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/QueryBuilderTest.php b/tests/QueryBuilderTest.php index e51df70..1fa8f2c 100644 --- a/tests/QueryBuilderTest.php +++ b/tests/QueryBuilderTest.php @@ -664,4 +664,10 @@ public function testDefaultValues(): void $queryBuilder->insert('negative_default_values', []), ); } + + /** @dataProvider \Yiisoft\Db\Oracle\Tests\Provider\QueryBuilderProvider::selectScalar */ + public function testSelectScalar(array|bool|float|int|string $columns, string $expected): void + { + parent::testSelectScalar($columns, $expected); + } }