Skip to content

Commit 326fc05

Browse files
Merge branch '5.4' into 6.0
* 5.4: Leverage str_contains/str_starts_with Leverage str_ends_with
2 parents 35776cd + de535b4 commit 326fc05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Link.php

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

158158
private function hrefIsTemplated(string $href): bool
159159
{
160-
return false !== strpos($href, '{') || false !== strpos($href, '}');
160+
return str_contains($href, '{') || str_contains($href, '}');
161161
}
162162
}

0 commit comments

Comments
 (0)