Skip to content

Commit c0bac58

Browse files
committed
Reproduce problem with mixing different phpdoc-parser versions
1 parent 51bed80 commit c0bac58

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ jobs:
139139
cd e2e/different-php-parser
140140
composer install
141141
../../phpstan analyse -l 8 test.php
142+
- |
143+
cd e2e/different-phpdoc-parser
144+
composer install
145+
../../phpstan analyse -l 8 -a Test.php Test.php
142146
143147
steps:
144148
- name: "Checkout"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/composer.lock
2+
/vendor

e2e/different-phpdoc-parser/Test.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace DifferentPhpDocParser;
4+
5+
/**
6+
* @mixin \Exception
7+
*/
8+
class Test
9+
{
10+
11+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"require": {
3+
"phpstan/phpstan": "^0.12.19",
4+
"phpstan/phpdoc-parser": "0.4.0",
5+
"squizlabs/php_codesniffer": "3.5.5"
6+
}
7+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
parameters:
2+
autoload_files:
3+
- vendor/squizlabs/php_codesniffer/autoload.php

0 commit comments

Comments
 (0)