Skip to content

Commit 7187c0e

Browse files
Seldaekondrejmirtes
authored andcommitted
Load new php 8.4 map
1 parent 1f160db commit 7187c0e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Reflection/SignatureMap/FunctionSignatureMapProvider.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,15 @@ public function getSignatureMap(): array
246246
$signatureMap = $this->computeSignatureMap($signatureMap, $php83MapDelta);
247247
}
248248

249+
if ($this->phpVersion->getVersionId() >= 80400) {
250+
$php84MapDelta = require __DIR__ . '/../../../resources/functionMap_php84delta.php';
251+
if (!is_array($php84MapDelta)) {
252+
throw new ShouldNotHappenException('Signature map could not be loaded.');
253+
}
254+
255+
$signatureMap = $this->computeSignatureMap($signatureMap, $php84MapDelta);
256+
}
257+
249258
return self::$signatureMaps[$cacheKey] = $signatureMap;
250259
}
251260

0 commit comments

Comments
 (0)