Skip to content

Commit

Permalink
Reproduce problem with using unprefixed functions that exists prefixe…
Browse files Browse the repository at this point in the history
…d in PHPStan
  • Loading branch information
ondrejmirtes committed May 4, 2020
1 parent 3fe9519 commit b7e21a2
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ jobs:
cd e2e/php-metrics
composer install
../../phpstan analyse -l 8 test.php
- |
cd e2e/react-bootstrap
composer install
../../phpstan analyse -l 8 -c phpstan.neon test.php
steps:
- name: "Checkout"
Expand Down
2 changes: 2 additions & 0 deletions e2e/react-bootstrap/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/composer.lock
/vendor
5 changes: 5 additions & 0 deletions e2e/react-bootstrap/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php declare(strict_types = 1);

require_once __DIR__ . '/vendor/autoload.php';

\React\Promise\resolve('foo');
6 changes: 6 additions & 0 deletions e2e/react-bootstrap/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"require": {
"phpstan/phpstan": "^0.12.19",
"react/promise": "^2.7"
}
}
2 changes: 2 additions & 0 deletions e2e/react-bootstrap/phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
parameters:
bootstrap: bootstrap.php
3 changes: 3 additions & 0 deletions e2e/react-bootstrap/test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

$foo = 'bar'; // bar

0 comments on commit b7e21a2

Please sign in to comment.