Skip to content

Commit

Permalink
Fix an PHP 8 issue with the 1.3 branch (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Dec 19, 2021
1 parent 1616001 commit e497949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/SimplePie/Parse/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,8 @@ class SimplePie_Parse_Date
*/
public function __construct()
{
$this->day_pcre = '(' . implode(array_keys($this->day), '|') . ')';
$this->month_pcre = '(' . implode(array_keys($this->month), '|') . ')';
$this->day_pcre = '(' . implode('|', array_keys($this->day)) . ')';
$this->month_pcre = '(' . implode('|', array_keys($this->month)) . ')';

static $cache;
if (!isset($cache[get_class($this)]))
Expand Down

0 comments on commit e497949

Please sign in to comment.