Skip to content

Commit

Permalink
Regression test
Browse files Browse the repository at this point in the history
Closes #6933
  • Loading branch information
ondrejmirtes committed Sep 3, 2022
1 parent f754560 commit bf20a21
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/other-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ jobs:
cd e2e/restricted-php-ini
composer install
php -d open_basedir="$(cd ../.. && pwd):$(php -r 'echo sys_get_temp_dir();')" -d disable_functions="pcntl_exec,pcntl_fork,exec,passthru,proc_open,shell_exec,system,popen" -d auto_prepend_file=phpstan-preload.php ../../phpstan analyse -c app/phpstan.neon
- |
cd e2e/bug6933
composer install
../../phpstan analyse -l 8 Module
include:
- php-version: 8.0
ini-values: memory_limit=256M
Expand Down
1 change: 1 addition & 0 deletions e2e/bug6933/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor
9 changes: 9 additions & 0 deletions e2e/bug6933/Module/Article/DataProvider/AbstractProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace Z\Module\Article\DataProvider;

/**
* Class AbstractProvider
* @template TOptions as array<string, mixed>
*/
abstract class AbstractProvider {}
10 changes: 10 additions & 0 deletions e2e/bug6933/Module/Article/DataProvider/RegOwnerSteps.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Z\Module\Article\DataProvider;
/**
* @extends AbstractProvider<array{opts?: array{'access'?: bool, 'asked_code'?: bool, 'asked_access'?: bool}, blocks?: list<RegOwnerSteps::BLOCK_*>, subject?: RegOwnerSteps::SUBJECT_*, step?: RegOwnerSteps::STEP_*, preview_mode?: (0|1|2|3|4|5|6|7|null), is_preview?: bool}>
*/
final class RegOwnerSteps extends AbstractProvider {
public const BLOCK_A = 'a';
public const SUBJECT_A = 'a';
}
9 changes: 9 additions & 0 deletions e2e/bug6933/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "test/test",
"type": "project",
"autoload": {
"psr-4": {
"Z\\": "."
}
}
}
18 changes: 18 additions & 0 deletions e2e/bug6933/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf20a21

Please sign in to comment.