From 6d43aad0976c8c9749e54d1c4393e60210b10a0b Mon Sep 17 00:00:00 2001 From: Serafim Date: Sat, 11 Apr 2020 05:18:52 +0300 Subject: [PATCH] Fix static call phpstorm notice --- src/Support/ProxyTrait.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Support/ProxyTrait.php b/src/Support/ProxyTrait.php index 77d8a02..af3ebaa 100644 --- a/src/Support/ProxyTrait.php +++ b/src/Support/ProxyTrait.php @@ -58,6 +58,7 @@ public static function addr(CData $type): CData public function new(string $type, bool $owned = true, bool $persistent = false): CData { try { + /** @noinspection StaticInvocationViaThisInspection */ return $this->info->ffi->new($this->nameToInternal($type), $owned, $persistent); } catch (ParserException $e) { $error = \sprintf('Structure "%s" not found. %s', $type, \ucfirst($e->getMessage()));