diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 821be9f3779..9f4e46ed86b 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -301,6 +301,11 @@ jobs: echo "$OUTPUT" ../bashunit -a matches "Note: Using configuration file .+phpstan.neon." "$OUTPUT" ../bashunit -a contains 'Result cache not used because the metadata do not match: metaExtensions' "$OUTPUT" + - script: | + cd e2e/result-cache-restore-without-reflection + composer install + ../../bin/phpstan -vvv + ../../bin/phpstan -vvv - script: | cd e2e/bug-12606 export CONFIGTEST=test diff --git a/e2e/result-cache-restore-without-reflection/.gitignore b/e2e/result-cache-restore-without-reflection/.gitignore new file mode 100644 index 00000000000..8b7ef350326 --- /dev/null +++ b/e2e/result-cache-restore-without-reflection/.gitignore @@ -0,0 +1,2 @@ +/vendor +composer.lock diff --git a/e2e/result-cache-restore-without-reflection/composer.json b/e2e/result-cache-restore-without-reflection/composer.json new file mode 100644 index 00000000000..e21da9a5a48 --- /dev/null +++ b/e2e/result-cache-restore-without-reflection/composer.json @@ -0,0 +1,17 @@ +{ + "require-dev": { + "phpstan/phpstan-symfony": "@dev", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan-doctrine": "@dev" + }, + "autoload": { + "classmap": [ + "lib/" + ] + }, + "config": { + "allow-plugins": { + "phpstan/extension-installer": true + } + } +} diff --git a/e2e/result-cache-restore-without-reflection/lib/ThrowingSourceLocator.php b/e2e/result-cache-restore-without-reflection/lib/ThrowingSourceLocator.php new file mode 100644 index 00000000000..197e78e755d --- /dev/null +++ b/e2e/result-cache-restore-without-reflection/lib/ThrowingSourceLocator.php @@ -0,0 +1,25 @@ +