Skip to content

Commit

Permalink
fix: Fix the parsing of invalid PHPDoc (#943)
Browse files Browse the repository at this point in the history
With the update of `phpdocumentor/type-resolver` 1.7.0, a peculiar case
is no longer broken.
  • Loading branch information
theofidry committed Mar 20, 2023
1 parent 8578ee1 commit d894e29
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 10 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"nikic/php-parser": "^4.15.2",
"paragonie/constant_time_encoding": "^2.6",
"phpdocumentor/reflection-docblock": "^5.3",
"phpdocumentor/type-resolver": "^1.7",
"psr/log": "^3.0",
"seld/jsonlint": "^1.9",
"symfony/console": "^6.1.7",
Expand Down
107 changes: 99 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/Compactor/PhpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ function foo($x) {
<?php
/**
@param
*/
* @param (string|stdClass $x
*/
function foo($x) {
}
PHP,
Expand Down

0 comments on commit d894e29

Please sign in to comment.