Skip to content

Commit be10f21

Browse files
committed
test: refactor by rector
1 parent 43de6c0 commit be10f21

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/system/Models/GetCompiledModelTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
*/
2525
final class GetCompiledModelTest extends CIUnitTestCase
2626
{
27-
/**
28-
* @var Model
29-
*/
30-
private $model;
27+
private ?object $model = null;
3128

3229
/**
3330
* Create an instance of Model for use in testing.
@@ -50,7 +47,7 @@ public function testGetCompiledInsert(): void
5047

5148
$this->createModel(UserObjModel::class);
5249

53-
$sql = $this->model
50+
$this->model
5451
->set('name', 'Mark')
5552
->set('email', '[email protected]')
5653
->getCompiledInsert();
@@ -66,7 +63,7 @@ public function testGetCompiledUpdate(): void
6663

6764
$this->createModel(UserObjModel::class);
6865

69-
$sql = $this->model
66+
$this->model
7067
->set('name', 'Mark')
7168
->set('email', '[email protected]')
7269
->getCompiledUpdate();

0 commit comments

Comments
 (0)