Skip to content

Commit d8823bc

Browse files
authored
Use JetBrains PHPStorm stubs from packagist (#264)
* Use JetBrains PHPStorm stubs from packagist * Fix path
1 parent 47b5b67 commit d8823bc

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

composer.json

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,9 @@
3636
"webmozart/path-util": "^2.3",
3737
"webmozart/glob": "^4.1",
3838
"sabre/uri": "^2.0",
39-
"JetBrains/phpstorm-stubs": "dev-master",
39+
"jetbrains/phpstorm-stubs": "dev-master",
4040
"composer/composer": "^1.3"
4141
},
42-
"repositories": [
43-
{
44-
"type": "package",
45-
"package": {
46-
"name": "JetBrains/phpstorm-stubs",
47-
"version": "dev-master",
48-
"dist": {
49-
"url": "https://github.com/JetBrains/phpstorm-stubs/archive/master.zip",
50-
"type": "zip"
51-
},
52-
"source": {
53-
"url": "https://github.com/JetBrains/phpstorm-stubs",
54-
"type": "git",
55-
"reference": "master"
56-
}
57-
}
58-
}
59-
],
6042
"minimum-stability": "dev",
6143
"prefer-stable": true,
6244
"autoload": {

src/ComposerScripts.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ public static function parseStubs()
3333
$definitionResolver = new DefinitionResolver($index);
3434

3535
$stubsLocation = null;
36-
foreach ([__DIR__ . '/../../../JetBrains/phpstorm-stubs', __DIR__ . '/../vendor/JetBrains/phpstorm-stubs'] as $dir) {
36+
foreach ([__DIR__ . '/../../../jetbrains/phpstorm-stubs', __DIR__ . '/../vendor/jetbrains/phpstorm-stubs'] as $dir) {
3737
if (file_exists($dir)) {
3838
$stubsLocation = Path::canonicalize($dir);
3939
break;
4040
}
4141
}
4242
if (!$stubsLocation) {
43-
throw new \Exception('JetBrains/phpstorm-stubs package not found');
43+
throw new \Exception('jetbrains/phpstorm-stubs package not found');
4444
}
4545

4646
$uris = yield $finder->find("$stubsLocation/**/*.php");

0 commit comments

Comments
 (0)