You are using
$this
within a
static
class member function:
public static function inst($fetch){
$instance = new User();
$var = $this->get_properties();
You either have to make the function non-static or make the function
get_properties()
static. But the latter would probably make no sense.
See also
PHP: Static Keyword - Manual[
^]:
Quote:
Because static methods are callable without an instance of the object created, the pseudo-variable $this is not available inside the method declared as static.