Skip to content

Commit

Permalink
Merge pull request #3892 from craftcms/feature/rector-73
Browse files Browse the repository at this point in the history
rector using the php 7.3 ruleset
  • Loading branch information
angrybrad authored Feb 12, 2025
2 parents 9d81195 + 6ae6fb2 commit 75832ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
__DIR__ . '/src',
__DIR__ . '/tests/unit',
])
->withPhpSets(php70: true);
->withPhpSets(php73: true);
2 changes: 1 addition & 1 deletion src/services/Formulas.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function evaluateFormula(string $formula, array $params, ?string $setType
private function _hasDisallowedStrings(string $code, array $disallowedStrings = []): bool
{
foreach ($disallowedStrings as $disallowedString) {
if (stripos($code, $disallowedString) !== false) {
if (stripos($code, (string) $disallowedString) !== false) {
return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/elements/variant/VariantQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function testShippingCategory(): void
'non-matching-shipping-category' => [$nonMatchingShippingCategory, 0],
];

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

Expand Down

0 comments on commit 75832ab

Please sign in to comment.