j0k3r / graby

Graby helps you extract article content from web pages
MIT License
362 stars 73 forks source link

ContentExtractor: Fix invalid argument type #305

Closed jtojnar closed 1 year ago

jtojnar commented 1 year ago

This was tripping up selfoss:

date_parse(): Passing null to parameter #1 ($datetime) of type string is deprecated
[vendor/j0k3r/graby/src/Extractor/ContentExtractor.php:722]
[vendor/j0k3r/graby/src/Extractor/ContentExtractor.php:722] date_parse()
[vendor/j0k3r/graby/src/Extractor/ContentExtractor.php:541] Graby\Extractor\ContentExtractor->validateDate()
[vendor/j0k3r/graby/src/Graby.php:374] Graby\Extractor\ContentExtractor->process()
[vendor/j0k3r/graby/src/Graby.php:181] Graby\Graby->doFetchContent()
[src/spouts/rss/fulltextrss.php:97] Graby\Graby->fetchContent()
[src/spouts/rss/fulltextrss.php:74] spouts\rss\fulltextrss->getFullContent()
[src/spouts/Item.php:117] spouts\rss\fulltextrss->spouts\rss\{closure}()
[workbench.php:112] spouts\Item->getContent()