Skip to content

Commit

Permalink
Merge pull request #233 from j0k3r/fix/phpstan-report
Browse files Browse the repository at this point in the history
Cast `date_parse` result
  • Loading branch information
j0k3r authored Jun 25, 2020
2 parents 12e9679 + 6480564 commit 96a1f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extractor/ContentExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ public function getNextPageUrl()
*/
public function validateDate($date)
{
$parseDate = date_parse($date);
$parseDate = (array) date_parse($date);

// If no year has been found during date_parse, we nuke the whole value
// because the date is invalid
Expand Down

0 comments on commit 96a1f79

Please sign in to comment.