Skip to content

Commit

Permalink
Fix deprecation of strtoupper receiving null
Browse files Browse the repository at this point in the history
  • Loading branch information
remyvanlerberghe committed Jun 12, 2024
1 parent 2cad19b commit c47fd49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function __construct($parts, $dtstart = null)
$this->freq = $parts['FREQ'];
}
else { // string
$parts['FREQ'] = strtoupper($parts['FREQ']);
$parts['FREQ'] = strtoupper((string) $parts['FREQ']);
if (! array_key_exists($parts['FREQ'], self::FREQUENCIES)) {
throw new \InvalidArgumentException(
'The FREQ rule part must be one of the following: '
Expand Down

0 comments on commit c47fd49

Please sign in to comment.