Skip to content

Commit 447d2c9

Browse files
derrabusnicolas-grekas
authored andcommitted
Leverage str_contains/str_starts_with
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent ac8cd05 commit 447d2c9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Internal/Exporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public static function export($value, $indent = '')
232232
return $m[1].$m[2];
233233
}, $code, -1, $count);
234234

235-
if ($count && 0 === strpos($code, "''.")) {
235+
if ($count && str_starts_with($code, "''.")) {
236236
$code = substr($code, 3);
237237
}
238238

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=7.1.3"
19+
"php": ">=7.1.3",
20+
"symfony/polyfill-php80": "^1.16"
2021
},
2122
"require-dev": {
2223
"symfony/var-dumper": "^4.4.9|^5.0.9"

0 commit comments

Comments
 (0)