Skip to content

Commit

Permalink
tweak: fix php doc
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Nov 21, 2024
1 parent b7426fa commit cc1fb1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DocumentBinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ public function bindListCallback(
}

public function cleanupDocument():void {
/** @var \Gt\Dom\XPathResult<Attr> $xpathResult */
/**
* @phpstan-ignore-next-line
* @var Attr[] $xpathResult

Check failure on line 164 in src/DocumentBinder.php

View workflow job for this annotation

GitHub Actions / phpstan

No error to ignore is reported on line 164.
*/
$xpathResult = $this->document->evaluate(

Check failure on line 166 in src/DocumentBinder.php

View workflow job for this annotation

GitHub Actions / phpstan

PHPDoc tag @var with type array<Gt\Dom\Attr> is not subtype of native type Gt\Dom\XPathResult.
"//*/@*[starts-with(name(), 'data-bind')] | //*/@*[starts-with(name(), 'data-list')] | //*/@*[starts-with(name(), 'data-template')] | //*/@*[starts-with(name(), 'data-table-key')] | //*/@*[starts-with(name(), 'data-element')]"
);
Expand Down

0 comments on commit cc1fb1d

Please sign in to comment.