Skip to content

Commit

Permalink
Reproduce #8054
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 29, 2022
1 parent 49045fc commit 726ed0c
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/other-tests.yml
Expand Up @@ -316,6 +316,13 @@ jobs:
script: |
cd e2e/phalcon5
../../phpstan
- php-version: 8.1
ini-values: memory_limit=256M
operating-system: ubuntu-latest
script: |
cd e2e/bug8054
composer install
../../phpstan analyze -c application/fare.de/phpstan.neon.dist
steps:
- name: "Checkout"
uses: actions/checkout@v3
Expand Down
9 changes: 9 additions & 0 deletions e2e/bug8054/application/fare.de/Bootstrap.php
@@ -0,0 +1,9 @@
<?php

class Bootstrap
{
protected function _initModuleCms()
{
APPLICATION_ROOT;
}
}
4 changes: 4 additions & 0 deletions e2e/bug8054/application/fare.de/phpstan-bootstrap.php
@@ -0,0 +1,4 @@
<?php

define('APPLICATION_ROOT', APP_ROOT);

5 changes: 5 additions & 0 deletions e2e/bug8054/application/fare.de/phpstan.neon.dist
@@ -0,0 +1,5 @@
parameters:
level: 5
paths:
- .
- ../../public/fare.de/
3 changes: 3 additions & 0 deletions e2e/bug8054/public/fare.de/boot.php
@@ -0,0 +1,3 @@
<?php

defined('APP_ROOT') || define('APP_ROOT', APPLICATION_ROOT);

0 comments on commit 726ed0c

Please sign in to comment.