Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
convertDeprecationsToExceptions="true"
>
<php>
<ini name="assert.exception" value="0"/>
</php>
<coverage>
<include>
<directory suffix=".php">./src</directory>
Expand Down
2 changes: 2 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Loading