Skip to content

Commit d146ca0

Browse files
committed
Apply StrictInArrayRector
1 parent f063fcf commit d146ca0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Cache/QueryCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ public function isEnabled(): bool
4343

4444
public function clear(?int $opcacheTTLHours, bool $opcacheOnly): void
4545
{
46-
if (in_array($this->mode, ['store', 'hybrid'])
46+
if (in_array($this->mode, ['store', 'hybrid'], true)
4747
&& ! $opcacheOnly
4848
) {
4949
$store = $this->makeCacheStore();
5050
$store->clear();
5151
}
5252

53-
if (in_array($this->mode, ['opcache', 'hybrid'])) {
53+
if (in_array($this->mode, ['opcache', 'hybrid'], true)) {
5454
$files = $this->filesystem->glob($this->opcacheFilePath('*'));
5555

5656
if (is_int($opcacheTTLHours)) {

src/WhereConditions/SQLOperator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ public function applyConditions(QueryBuilder|EloquentBuilder $builder, array $wh
115115

116116
protected function operatorArity(string $operator): int
117117
{
118-
if (in_array($operator, ['Null', 'NotNull'])) {
118+
if (in_array($operator, ['Null', 'NotNull'], true)) {
119119
return 1;
120120
}
121121

122-
if (in_array($operator, ['In', 'NotIn', 'Between', 'NotBetween'])) {
122+
if (in_array($operator, ['In', 'NotIn', 'Between', 'NotBetween'], true)) {
123123
return 2;
124124
}
125125

0 commit comments

Comments
 (0)