Error

PHP Noticeyii\base\ErrorException

Trying to get property of non-object

$_GET = [
    'post_id' => '8',
];

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