From ce8ed589d58b92aff40d6e741444982630b1005b Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Sat, 5 Apr 2025 13:16:21 +0200 Subject: [PATCH] Modernize to PHP 7.3 --- rector.php | 2 +- src/Operator/PHP/Matches.php | 2 +- src/Operator/PHP/NotMatches.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rector.php b/rector.php index 9c3ad55d8..831914c78 100644 --- a/rector.php +++ b/rector.php @@ -14,5 +14,5 @@ return RectorConfig::configure() ]) ->withImportNames(importShortClasses: false) ->withAttributesSets(doctrine: true) - ->withPhpSets(php71: true) + ->withPhpSets(php73: true) ->withTypeCoverageLevel(0); diff --git a/src/Operator/PHP/Matches.php b/src/Operator/PHP/Matches.php index 7d727bcae..0d3f2bfab 100644 --- a/src/Operator/PHP/Matches.php +++ b/src/Operator/PHP/Matches.php @@ -20,6 +20,6 @@ class Matches return false; } - return false !== stripos($subject, $pattern); + return false !== stripos($subject, (string) $pattern); } } diff --git a/src/Operator/PHP/NotMatches.php b/src/Operator/PHP/NotMatches.php index 9942a985f..49556815c 100644 --- a/src/Operator/PHP/NotMatches.php +++ b/src/Operator/PHP/NotMatches.php @@ -20,6 +20,6 @@ class NotMatches return true; } - return false === stripos($subject, $pattern); + return false === stripos($subject, (string) $pattern); } }