Skip to content

Commit

Permalink
Fix static call phpstorm notice
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Apr 11, 2020
1 parent bc537de commit 6d43aad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Support/ProxyTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit 6d43aad

Please sign in to comment.