Skip to content

Commit

Permalink
Use full equality
Browse files Browse the repository at this point in the history
  • Loading branch information
u01jmg3 committed Jul 15, 2022
1 parent 62a4a94 commit bc4cf65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ICal/ICal.php
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ public function keyValueFromString($text)
$paramValue = array();
$multiValue = false;
// A parameter can have multiple values separated by a comma
while ($i + 1 < count($splitLine) && $splitLine[$i + 1] == ',') {
while ($i + 1 < count($splitLine) && $splitLine[$i + 1] === ',') {
$paramValue[] = $splitLine[$i];
$i += 2;
$multiValue = true;
Expand All @@ -1039,7 +1039,7 @@ public function keyValueFromString($text)

// After a colon all tokens are concatenated (non-standard behaviour because the property can have multiple values
// according to RFC5545)
if ($splitLine[$i] == ':') {
if ($splitLine[$i] === ':') {
$i++;
while ($i < count($splitLine)) {
$valueObj .= $splitLine[$i];
Expand Down

0 comments on commit bc4cf65

Please sign in to comment.