Skip to content

Commit 75832ab

Browse files
authored
Merge pull request #3892 from craftcms/feature/rector-73
rector using the php 7.3 ruleset
2 parents 9d81195 + 6ae6fb2 commit 75832ab

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
__DIR__ . '/src',
1010
__DIR__ . '/tests/unit',
1111
])
12-
->withPhpSets(php70: true);
12+
->withPhpSets(php73: true);

src/services/Formulas.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function evaluateFormula(string $formula, array $params, ?string $setType
142142
private function _hasDisallowedStrings(string $code, array $disallowedStrings = []): bool
143143
{
144144
foreach ($disallowedStrings as $disallowedString) {
145-
if (stripos($code, $disallowedString) !== false) {
145+
if (stripos($code, (string) $disallowedString) !== false) {
146146
return true;
147147
}
148148
}

tests/unit/elements/variant/VariantQueryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function testShippingCategory(): void
130130
'non-matching-shipping-category' => [$nonMatchingShippingCategory, 0],
131131
];
132132

133-
foreach ($tests as $key => list($criteria, $count)) {
133+
foreach ($tests as $key => [$criteria, $count]) {
134134
$query = Variant::find();
135135
$query->shippingCategory($criteria);
136136

0 commit comments

Comments
 (0)