Notice: Trying to access array offset on value of type bool in /htdocs/PrimeTime/phpclass/model/news.saver.class.php on line 87

Fatal error: Uncaught TypeError: Return value of NewsSaver::getFirstArticleOfYear() must be of the type int, null returned in /htdocs/PrimeTime/phpclass/model/news.saver.class.php:87 Stack trace: #0 /htdocs/PrimeTime/phpclass/view/article/news/news.article.class.php(23): NewsSaver->getFirstArticleOfYear(2023) #1 /htdocs/PrimeTime/phpclass/view/page/news.page.class.php(15): NewsArticle::create() #2 /htdocs/PrimeTime/phpclass/router/router.class.php(32): NewsPage->__construct() #3 /htdocs/PrimeTime/public/index.php(21): Router->process() #4 {main} thrown in /htdocs/PrimeTime/phpclass/model/news.saver.class.php on line 87