georgringer / news

TYPO3 Extension news
GNU General Public License v2.0
265 stars 355 forks source link

[DOC] Check request object in conditions #2251 #2252

Closed cundd closed 1 year ago

cundd commented 1 year ago

Prevent the PHP error 'Unable to call method "getQueryParams" of non-object "request".' in contexts without a request object (i.e. CLI).

See matching pull request on TYPO3 core: https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-Typoscript/pull/807

georgringer commented 1 year ago

fixes https://github.com/georgringer/news/issues/2251