Error

PHP Noticeyii\base\ErrorException

Trying to get property of non-object

$_GET = [
    'slug' => 'bachelors-avtomatizaciya-tehnologicheskih-processov-i-proizvodstv-v-teploenergetike-i-teplotehnike',
];

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