Skip to content

Commit

Permalink
Attempt to reproduce name conflict issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Nov 21, 2020
1 parent 3e67a4a commit 88833ca
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ jobs:
../../phpstan analyse -l 8 src/
../../phpstan analyse -l 8 src/ --generate-baseline
../../phpstan analyse -l 8 src/
- |
cd e2e/name-conflict
composer install
cp ../../phpstan vendor/bin/phpstan
vendor/bin/phpstan analyse -l 8 test.php
include:
- php-version: 8.0
script: |
Expand Down
2 changes: 2 additions & 0 deletions e2e/name-conflict/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor
/composer.lock
6 changes: 6 additions & 0 deletions e2e/name-conflict/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"autoload": {"classmap": ["src"]},
"require": {
"phpstan/phpstan": "^0.12.56"
}
}
8 changes: 8 additions & 0 deletions e2e/name-conflict/src/Parser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Foo\Parser;

class Parser
{

}

0 comments on commit 88833ca

Please sign in to comment.