diff --git a/phpstan.neon b/phpstan.neon
index efbf455d..eecac9c2 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -44,6 +44,9 @@ parameters:
-
message: '#^Call to function method_exists\(\) with ''Doctrine\\\\ORM\\\\EntityManager'' and ''create'' will always evaluate to true\.$#'
path: src/Doctrine/Mapping/ClassMetadataFactory.php
+ -
+ message: '#^Call to function ini_set\(\) with deprecated option ''assert\.exception''\.$#'
+ path: tests/bootstrap.php
-
message: '#^Call to function method_exists\(\) with Doctrine\\DBAL\\Connection and ''getNativeConnection'' will always evaluate to true\.$#' # needed for older DBAL versions
diff --git a/phpunit.xml b/phpunit.xml
index f4beeb21..93b7e4c7 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -13,9 +13,6 @@
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
convertDeprecationsToExceptions="true"
>
-
-
-
./src
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index edf6599d..7994f793 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -4,6 +4,8 @@
require_once __DIR__ . '/../vendor/autoload.php';
+@ini_set('assert.exception', '0'); // @ deprecated in PHP 8.3
+
PHPStanTestCase::getContainer();
require_once __DIR__ . '/orm-3-bootstrap.php';