fix regex on windows
[civicrm-core.git] / tools / scripts / composer / guzzle-mockhandler-fix.sh
index bb28563973a3e2e43a2e169bc25cf9eecf84e6dc..37290a4fbe97e147b01d8689066f17be4aaa9989 100755 (executable)
@@ -15,7 +15,7 @@ function simple_replace() {
 }
 
 
-# add in class_exists test as per CRM-8921.
+# php 8.1 compatibility
 if ! grep -q ':int' vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php; then
-  simple_replace vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php '/public function count\(\)$/m' 'public function count() :int'
+  simple_replace vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php '#public function count\(\)$#m' 'public function count(): int'
 fi