Fatal error: Uncaught TypeError: App\Models\Publication::__construct(): Argument #2 ($url) must be of type string, null given, called in /var/www/html/src/app/Mappers/PublicationMapper.php on line 20 and defined in /var/www/html/src/app/Models/Publication.php:31
Stack trace:
#0 /var/www/html/src/app/Mappers/PublicationMapper.php(20): App\Models\Publication->__construct(486, NULL, 1, '\xD0\x9E\xD1\x80\xD0\xB8\xD0\xB3\xD0\xB8\xD0\xBD\xD0\xB0\xD0...', '<script type="t...', '<script type="t...', 'a:1:{s:5:"value...', 'a:1:{s:5:"value...', '2012-11-06 19:0...', '2011-05-04 12:3...')
#1 /var/www/html/src/app/Repos/PublicationsRepo.php(37): App\Mappers\PublicationMapper->createFromDB(Array)
#2 /var/www/html/src/app/Controllers/PublicationsController.php(96): App\Repos\PublicationsRepo->getAll(460, 20, Object(App\Services\DataBase), Object(App\Services\SqlQueryResolver), Object(App\Mappers\PublicationMapper))
#3 /var/www/html/src/app/config.php(67): App\Controllers\PublicationsController->list(Object(Slim\Psr7\Request), Object(Slim\Psr7\Response), Array)
#4 /var/www/html/src/app/bootstrap.php(73): {closure}(Object(DI\Container), Object(Slim\Psr7\Request), Object(Slim\Psr7\Response), Array)
#5 /var/www/html/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(43): Closure->{closure}(Object(Slim\Psr7\Request), Object(Slim\Psr7\Response), Array)
#6 /var/www/html/vendor/slim/slim/Slim/Routing/Route.php(384): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Psr7\Request), Object(Slim\Psr7\Response), Array)
#7 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\Routing\Route->handle(Object(Slim\Psr7\Request))
#8 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request))
#9 /var/www/html/vendor/slim/slim/Slim/Routing/Route.php(341): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request))
#10 /var/www/html/vendor/slim/slim/Slim/Routing/RouteRunner.php(84): Slim\Routing\Route->run(Object(Slim\Psr7\Request))
#11 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\Routing\RouteRunner->handle(Object(Slim\Psr7\Request))
#12 /var/www/html/vendor/slim/slim/Slim/App.php(215): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request))
#13 /var/www/html/vendor/slim/slim/Slim/App.php(199): Slim\App->handle(Object(Slim\Psr7\Request))
#14 /var/www/html/src/app/bootstrap.php(77): Slim\App->run()
#15 /var/www/html/public/index.php(5): require('/var/www/html/s...')
#16 {main}
thrown in /var/www/html/src/app/Models/Publication.php on line 31