Skip to content

Commit 9383c5c

Browse files
committed
Fix bug
1 parent 0430b61 commit 9383c5c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/UsingDataPPFrameDOM.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function isEmpty(): bool {
106106

107107
public function getArgumentForParser(
108108
Parser $parser, string $normalizedFragment, ?string $arg, string|false $default = false
109-
) {
109+
): string|false {
110110
$arg = $normalizedFragment . $arg;
111111
if ( isset( $this->expandedArgs[$arg] ) && $this->expansionParser === $parser ) {
112112
return $this->expandedArgs[$arg];
@@ -138,8 +138,10 @@ public function getArgumentForParser(
138138
return $ret;
139139
}
140140

141-
/** @phan-suppress-next-line PhanParamSignatureMismatch */
142-
public function getArgument( $name ): string {
141+
/**
142+
* @suppress PhanTypeMismatchReturn
143+
*/
144+
public function getArgument( $name ): string|false {
143145
switch ( $name ) {
144146
case 'data-found':
145147
return $this->isEmpty() ? '' : '1';

0 commit comments

Comments
 (0)