Error

PHP Noticeyii\base\ErrorException

Trying to get property of non-object

$_GET = [
    'slug' => 'bachelors-promyshlennaya-ekologiya-i-racionalnoe-ispolzovanie-prirodnyx-resursov-magistr',
];

$_SESSION = [
    '__flash' => [],
];