From 163126815f92029ba581cc83988bd9b108f29204 Mon Sep 17 00:00:00 2001 From: robmachado Date: Thu, 1 Jun 2023 16:16:33 -0300 Subject: [PATCH] ISSUE #289 troca do str_contains() por strpos(), para manter compatibilidade com o PHP7 --- src/Certificate/PublicKey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Certificate/PublicKey.php b/src/Certificate/PublicKey.php index 4da1fcf..c468eee 100755 --- a/src/Certificate/PublicKey.php +++ b/src/Certificate/PublicKey.php @@ -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; }