Skip to content

Commit 88833ca

Browse files
committed
Attempt to reproduce name conflict issue
1 parent 3e67a4a commit 88833ca

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ jobs:
211211
../../phpstan analyse -l 8 src/
212212
../../phpstan analyse -l 8 src/ --generate-baseline
213213
../../phpstan analyse -l 8 src/
214+
- |
215+
cd e2e/name-conflict
216+
composer install
217+
cp ../../phpstan vendor/bin/phpstan
218+
vendor/bin/phpstan analyse -l 8 test.php
214219
include:
215220
- php-version: 8.0
216221
script: |

e2e/name-conflict/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/vendor
2+
/composer.lock

e2e/name-conflict/composer.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"autoload": {"classmap": ["src"]},
3+
"require": {
4+
"phpstan/phpstan": "^0.12.56"
5+
}
6+
}

e2e/name-conflict/src/Parser.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Foo\Parser;
4+
5+
class Parser
6+
{
7+
8+
}

0 commit comments

Comments
 (0)