Skip to content

Commit de535b4

Browse files
Merge branch '5.3' into 5.4
* 5.3: Leverage str_contains/str_starts_with Leverage str_ends_with
2 parents 340401b + 0075c99 commit de535b4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,6 @@ public function withoutAttribute($attribute)
159159

160160
private function hrefIsTemplated(string $href): bool
161161
{
162-
return false !== strpos($href, '{') || false !== strpos($href, '}');
162+
return str_contains($href, '{') || str_contains($href, '}');
163163
}
164164
}

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
},
2121
"require": {
2222
"php": ">=7.2.5",
23-
"psr/link": "^1.0"
23+
"psr/link": "^1.0",
24+
"symfony/polyfill-php80": "^1.16"
2425
},
2526
"suggest": {
2627
"symfony/http-kernel": ""

0 commit comments

Comments
 (0)