Skip to content

Commit

Permalink
Merge pull request #3 from sj-i/fix-psalm-false-positive
Browse files Browse the repository at this point in the history
add @var to suppress a false-positive warning of psalm in a client code
  • Loading branch information
sj-i committed Aug 28, 2021
2 parents 7f1ef2a + c95ba0f commit b50a5bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/TypedCDataDefaultImplementationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public function toCData(CData $cdata): CData
public static function newCData(): CData
{
$typename = static::getCTypeName();
/** @var CData $cdata */
$cdata = static::getFFI()->new($typename);
$type = static::getFFI()->type(
$typename
Expand Down

0 comments on commit b50a5bc

Please sign in to comment.