diff --git a/build/phpstan.neon b/build/phpstan.neon
index 18e93e6cea..198f0710a3 100644
--- a/build/phpstan.neon
+++ b/build/phpstan.neon
@@ -14,6 +14,7 @@ parameters:
- %rootDir%/src/Reflection/SignatureMap/functionMap.php
- %rootDir%/src/Reflection/SignatureMap/functionMetadata.php
- %rootDir%/tests/*/data/*
+ - %rootDir%/tests/tmp/*
- %rootDir%/tests/PHPStan/Analyser/traits/*
- %rootDir%/tests/notAutoloaded/*
- %rootDir%/tests/PHPStan/Generics/functions.php
diff --git a/phpcs.xml b/phpcs.xml
index 0ea71c49ec..951eb1def7 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -70,6 +70,7 @@
tests/*/data
tests/*/traits
+ tests/tmp
tests/notAutoloaded
src/Reflection/BetterReflection/BetterReflectionSourceLocatorFactory.php
src/Reflection/SignatureMap/functionMap.php