Skip to content

Commit 6271e66

Browse files
authored
Silence deprecation of assert.exception
1 parent d805e14 commit 6271e66

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ parameters:
4545
-
4646
message: '#^Call to function method_exists\(\) with ''Doctrine\\\\ORM\\\\EntityManager'' and ''create'' will always evaluate to true\.$#'
4747
path: src/Doctrine/Mapping/ClassMetadataFactory.php
48+
-
49+
message: '#^Call to function ini_set\(\) with deprecated option ''assert\.exception''\.$#'
50+
path: tests/bootstrap.php
4851

4952
-
5053
message: '#^Call to function method_exists\(\) with Doctrine\\DBAL\\Connection and ''getNativeConnection'' will always evaluate to true\.$#' # needed for older DBAL versions

phpunit.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
1414
convertDeprecationsToExceptions="true"
1515
>
16-
<php>
17-
<ini name="assert.exception" value="0"/>
18-
</php>
1916
<coverage>
2017
<include>
2118
<directory suffix=".php">./src</directory>

tests/bootstrap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
require_once __DIR__ . '/../vendor/autoload.php';
66

7+
@ini_set('assert.exception', '0'); // @ deprecated in PHP 8.3
8+
79
PHPStanTestCase::getContainer();
810

911
require_once __DIR__ . '/orm-3-bootstrap.php';

0 commit comments

Comments
 (0)