diff --git a/build/phpstan/console-loader.php b/build/phpstan/console-loader.php
deleted file mode 100644
index ed529588d3e04a3d1d828f083032c98b70df4f38..0000000000000000000000000000000000000000
--- a/build/phpstan/console-loader.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php declare(strict_types = 1);
-
-use App\Kernel;
-use Symfony\Bundle\FrameworkBundle\Console\Application;
-use Symfony\Component\Dotenv\Dotenv;
-
-require dirname(__DIR__) . '/../vendor/autoload.php';
-
-(new Dotenv())->bootEnv(dirname(__DIR__) . '/../.env');
-$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
-return new Application($kernel);
diff --git a/composer.json b/composer.json
index a9eed8e9c641bb2d590508adf655d92830dde8e6..e5206e8ae0526cdee421051b32277cfe2e703cbb 100644
--- a/composer.json
+++ b/composer.json
@@ -124,8 +124,8 @@
             "@phpstan-general",
             "@phpstan-tests"
         ],
-        "phpstan-general": "phpstan analyse -c phpstan.neon -l 1 src --memory-limit=4G",
-        "phpstan-tests": "phpstan analyse -c phpstan-tests.neon -l 1 tests --memory-limit=4G",
+        "phpstan-general": "php -d memory_limit=4G vendor/bin/phpstan analyse -c phpstan.neon",
+        "phpstan-tests": "php -d memory_limit=4G vendor/bin/phpstan analyse -c phpstan-tests.neon",
         "php-cs-fixer": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src/ tests/"
     },
     "conflict": {
diff --git a/phpstan-tests.neon b/phpstan-tests.neon
index 036daa41c9866117122e5883ab00718fa74faba7..0067e542198347a879b77ec5225dcd798ef0c15e 100644
--- a/phpstan-tests.neon
+++ b/phpstan-tests.neon
@@ -1,6 +1,6 @@
 parameters:
+    level: 1
+    paths:
+        - tests/
     symfony:
-        container_xml_path: var/cache/test/App_KernelTestDebugContainer.xml
-        console_application_loader: build/phpstan/console-loader.php
-    doctrine:
-        objectManagerLoader: tests/ObjectManager.php
\ No newline at end of file
+        container_xml_path: var/cache/test/App_KernelTestDebugContainer.xml
\ No newline at end of file
diff --git a/phpstan.neon b/phpstan.neon
index c47ca78e296172556efb62a9b79efdc2c1851f1d..ad7e25e88c404a73a50e191a9e9a66daaa913c7c 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -1,6 +1,6 @@
 parameters:
+    level: 1
+    paths:
+        - src/
     symfony:
-        container_xml_path: var/cache/dev/App_KernelDevDebugContainer.xml
-        console_application_loader: build/phpstan/console-loader.php
-    doctrine:
-        objectManagerLoader: tests/ObjectManager.php
\ No newline at end of file
+        container_xml_path: var/cache/dev/App_KernelDevDebugContainer.xml
\ No newline at end of file