Skip to content

Commit 1c3d429

Browse files
committed
rename variables with reserved names
1 parent 26358e0 commit 1c3d429

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/WpParseUrlFunctionDynamicReturnTypeExtension.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ private function cacheReturnTypes(): void
145145
return;
146146
}
147147

148-
$string = new StringType();
148+
$stringType = new StringType();
149149
$port = IntegerRangeType::fromInterval(0, 65535);
150-
$false = new ConstantBooleanType(false);
151-
$null = new NullType();
150+
$falseType = new ConstantBooleanType(false);
151+
$nullType = new NullType();
152152

153-
$stringOrFalseOrNull = TypeCombinator::union($string, $false, $null);
154-
$portOrFalseOrNull = TypeCombinator::union($port, $false, $null);
153+
$stringOrFalseOrNull = TypeCombinator::union($stringType, $falseType, $nullType);
154+
$portOrFalseOrNull = TypeCombinator::union($port, $falseType, $nullType);
155155

156156
$this->componentTypesPairedConstants = [
157157
PHP_URL_SCHEME => $stringOrFalseOrNull,
@@ -165,14 +165,14 @@ private function cacheReturnTypes(): void
165165
];
166166

167167
$this->componentTypesPairedStrings = [
168-
'scheme' => $string,
169-
'host' => $string,
168+
'scheme' => $stringType,
169+
'host' => $stringType,
170170
'port' => $port,
171-
'user' => $string,
172-
'pass' => $string,
173-
'path' => $string,
174-
'query' => $string,
175-
'fragment' => $string,
171+
'user' => $stringType,
172+
'pass' => $stringType,
173+
'path' => $stringType,
174+
'query' => $stringType,
175+
'fragment' => $stringType,
176176
];
177177
}
178178
}

0 commit comments

Comments
 (0)