Skip to content

Commit 21ca328

Browse files
Remove unnecessary trait InAndNotInUtils
- This was only introduced to reduce phpstan errors.
1 parent 8686b59 commit 21ca328

3 files changed

Lines changed: 2 additions & 72 deletions

File tree

src/Filter/In.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
class In extends Filter\Condition
99
{
10-
use InAndNotInUtils;
11-
1210
/**
1311
* Create a new sql IN condition
1412
*
@@ -17,8 +15,6 @@ class In extends Filter\Condition
1715
*/
1816
public function __construct(array|string $column, Select $select)
1917
{
20-
$this
21-
->setColumn($column)
22-
->setValue($select);
18+
parent::__construct($column, $select);
2319
}
2420
}

src/Filter/InAndNotInUtils.php

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/Filter/NotIn.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
class NotIn extends Filter\Condition
99
{
10-
use InAndNotInUtils;
11-
1210
/**
1311
* Create a new sql NOT IN condition
1412
*
@@ -17,8 +15,6 @@ class NotIn extends Filter\Condition
1715
*/
1816
public function __construct(array|string $column, Select $select)
1917
{
20-
$this
21-
->setColumn($column)
22-
->setValue($select);
18+
parent::__construct($column, $select);
2319
}
2420
}

0 commit comments

Comments
 (0)