|
5 | 5 | namespace Tpetry\PostgresqlEnhanced\Query;
|
6 | 6 |
|
7 | 7 | use Illuminate\Database\Query\Expression;
|
8 |
| -use Illuminate\Support\Facades\App; |
9 | 8 |
|
10 | 9 | trait BuilderWhere
|
11 | 10 | {
|
@@ -68,10 +67,6 @@ public function orWhereIntegerArrayMatches($column, string $query): static
|
68 | 67 | */
|
69 | 68 | public function orWhereLike($column, $value, $caseSensitive = false): static
|
70 | 69 | {
|
71 |
| - if (version_compare(App::version(), '11.17.0', '>=')) { |
72 |
| - return parent::orWhereLike($column, $value, $caseSensitive); |
73 |
| - } |
74 |
| - |
75 | 70 | return $this->whereLike($column, $value, $caseSensitive, 'or', false);
|
76 | 71 | }
|
77 | 72 |
|
@@ -193,10 +188,6 @@ public function whereIntegerArrayMatches($column, string $query): static
|
193 | 188 | */
|
194 | 189 | public function whereLike($column, $value, $caseSensitive = false, $boolean = 'and', $not = false): static
|
195 | 190 | {
|
196 |
| - if (version_compare(App::version(), '11.17.0', '>=')) { |
197 |
| - return parent::whereLike($column, $value, $caseSensitive, $boolean, $not); |
198 |
| - } |
199 |
| - |
200 | 191 | $type = 'like';
|
201 | 192 |
|
202 | 193 | $this->wheres[] = compact('type', 'column', 'value', 'caseSensitive', 'boolean', 'not');
|
|
0 commit comments