Skip to content

Commit

Permalink
ISSUE #289 troca do str_contains() por strpos(), para manter compatib…
Browse files Browse the repository at this point in the history
…ilidade com o PHP7
  • Loading branch information
robmachado committed Jun 1, 2023
1 parent d186c5a commit 1631268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Certificate/PublicKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ protected function between(string $string, string $start, array $end = ['p7b', '
$string = ' ' . $string;
$final = null;
foreach ($end as $fim) {
if (str_contains($string, $fim)) {
if (strpos($string, $fim) !== false) {
$final = $fim;
break;
}
Expand Down

0 comments on commit 1631268

Please sign in to comment.