Skip to content

Commit 9f0abd7

Browse files
committed
Move functionMap files outside of src
1 parent 17315cb commit 9f0abd7

5 files changed

Lines changed: 4 additions & 3 deletions

File tree

compiler/build/box.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"directories": [
1313
"conf",
1414
"src",
15+
"resources",
1516
"stubs"
1617
],
1718
"force-autodiscovery": true,
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/Reflection/SignatureMap/SignatureMapProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private function getFunctionMetadataMap(): array
7373
{
7474
if ($this->functionMetadata === null) {
7575
/** @var array<string, array{hasSideEffects: bool}> $metadata */
76-
$metadata = require __DIR__ . '/functionMetadata.php';
76+
$metadata = require __DIR__ . '/../../../resources/functionMetadata.php';
7777
$this->functionMetadata = array_change_key_case($metadata, CASE_LOWER);
7878
}
7979

@@ -86,15 +86,15 @@ private function getFunctionMetadataMap(): array
8686
private function getSignatureMap(): array
8787
{
8888
if ($this->signatureMap === null) {
89-
$signatureMap = require __DIR__ . '/functionMap.php';
89+
$signatureMap = require __DIR__ . '/../../../resources/functionMap.php';
9090
if (!is_array($signatureMap)) {
9191
throw new \PHPStan\ShouldNotHappenException('Signature map could not be loaded.');
9292
}
9393

9494
$signatureMap = array_change_key_case($signatureMap, CASE_LOWER);
9595

9696
if ($this->phpVersion->getVersionId() >= 70400) {
97-
$php74MapDelta = require __DIR__ . '/functionMap_php74delta.php';
97+
$php74MapDelta = require __DIR__ . '/../../../resources/functionMap_php74delta.php';
9898
if (!is_array($php74MapDelta)) {
9999
throw new \PHPStan\ShouldNotHappenException('Signature map could not be loaded.');
100100
}

0 commit comments

Comments
 (0)