Users.php (モデル):
...
public function hashPassword($password){
$hashed = hash('sha256', $password . self::HASH_CODE);
return $hashed;
}
...
UserIdentity.php
...
else if($user->password!==Users::hashPassword($this->password))
...
エラー:
Non-static method Users::hashPassword() should not be called statically, assuming $this from incompatible context