Error

PHP Noticeyii\base\ErrorException

Trying to get property of non-object

$_GET = [
    'title' => '%E5%BE%AE%E5%9E%8B%E5%AE%9A%E9%87%8F%E7%A7%BB%E6%B6%B2%E5%99%A8',
    'type' => 'product',
    'number' => '5',
];

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