Skip to content

Commit

Permalink
PHP 8.0 Language features
Browse files Browse the repository at this point in the history
  • Loading branch information
endroid committed Aug 28, 2023
1 parent e139b76 commit 62fe463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Reader/IcalReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private function getData(string $name, string $calendarData): array
$line = [];
$values = array_merge(explode(';', trim($matches[2][$i], ';')), explode(';', $matches[3][$i]));
foreach ($values as $value) {
if (false !== strpos($value, '=')) {
if (str_contains($value, '=')) {
$parts = explode('=', $value);
$line['extra'][$parts[0]] = $parts[1];
} else {
Expand Down

0 comments on commit 62fe463

Please sign in to comment.