Non-static method xxx::xxx() should not be called statically, assuming $this from incompatible context

環境


事象

A PHP Error was encountered
Severity: 8192
Message: Non-static method xxx::xxx() should not be called statically, assuming $this from incompatible context
Filename: xxx/xxx.php
Line Number: xxx


対策

function xxx()

static で宣言する.

public static function()

もしくは, php_iniでエラー出力レベルを抑える.

参考サイト