Skip to content

Commit

Permalink
use PHPStan 1.7.12, with new phpdoc-parser to fix endline issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jun 9, 2022
1 parent e7ec08f commit 56651d0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions build/build-preload.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ public function buildPreloadScript(string $buildDirectory): void
$stmtsAwareInterface = new SplFileInfo(__DIR__ . '/../src/Contract/PhpParser/Node/StmtsAwareInterface.php');
array_splice($fileInfos, 1, 0, [$stmtsAwareInterface]);

// hotfix for phpdoc-parser 1.6, possibly waits on phpstan release with this package, see https://github.com/phpstan/phpdoc-parser/issues/132
$fileInfos[] = new SmartFileInfo('vendor/phpstan/phpdoc-parser/src/Parser/TokenIterator.php');

// 3. create preload.php from provided files
$preloadFileContent = $this->createPreloadFileContent($fileInfos);

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"nikic/php-parser": "^4.14.0",
"ondram/ci-detector": "^4.1",
"phpstan/phpdoc-parser": "^1.6",
"phpstan/phpstan": "^1.7.10",
"phpstan/phpstan": "^1.7.12",
"phpstan/phpstan-phpunit": "^1.1",
"react/child-process": "^0.6.4",
"react/event-loop": "^1.3",
Expand Down
1 change: 0 additions & 1 deletion preload.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,3 @@
require_once __DIR__ . '/vendor/nikic/php-parser/lib/PhpParser/Parser/Tokens.php';
require_once __DIR__ . '/vendor/nikic/php-parser/lib/PhpParser/ParserFactory.php';
require_once __DIR__ . '/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php';
require_once __DIR__ . '/vendor/phpstan/phpdoc-parser/src/Parser/TokenIterator.php';

0 comments on commit 56651d0

Please sign in to comment.