Error

PHP Noticeyii\base\ErrorException

Trying to get property of non-object

$_GET = [
    'slug' => 'bachelors-avtonomnye-sistemy-upravleniya-deystviem-sredstv-porazheniya',
];

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