We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c33ab83 commit 0e332a6Copy full SHA for 0e332a6
1 file changed
src/Decoders/StripDecoder.php
@@ -28,7 +28,7 @@ protected function decodeChain(array $tokens): array
28
return array_map(function ($token) {
29
$startCut = 0;
30
for ($i = 0; $i < $this->start; ++$i) {
31
- if ($token[$i] === $this->content) {
+ if ($token[$i] ?? null === $this->content) {
32
$startCut = $i + 1;
33
continue;
34
} else {
@@ -39,7 +39,7 @@ protected function decodeChain(array $tokens): array
39
$stopCut = strlen($token);
40
for ($i = 0; $i < $this->stop; ++$i) {
41
$index = strlen($token) - $i - 1;
42
- if ($token[$index] === $this->content) {
+ if ($token[$index] ?? null === $this->content) {
43
$stopCut = $index;
44
45
0 commit comments