Skip to content

Commit

Permalink
Don't try to address Doctrine deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude committed Apr 7, 2024
1 parent 8f47db8 commit 413d2c4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
},

"require-dev": {
"doctrine/common": "^3.1",
"doctrine/doctrine-bundle": "^2.10",
"doctrine/common": "^2.0|^3.1",
"doctrine/doctrine-bundle": "^2.0",
"phpunit/phpunit": "^9.6.18",
"symfony/error-handler": "^6.4|^7.0",
"symfony/framework-bundle": "^5.4|^6.4|^7.0",
Expand Down
3 changes: 2 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
<php>
<server name="KERNEL_CLASS" value="Webfactory\Bundle\PolyglotBundle\Tests\Fixtures\TestKernel" />
<server name="KERNEL_DIR" value="tests/Fixtures/" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=0" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak" />
<env name="DOCTRINE_DEPRECATIONS" value="trigger" />
<server name="SHELL_VERBOSITY" value="-1" />
</php>
<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
Expand Down
7 changes: 5 additions & 2 deletions tests/Fixtures/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ framework:
test: true
annotations: false


doctrine:
dbal:
driver: pdo_sqlite
memory: true
orm:
report_fields_where_declared: true
enable_lazy_ghost_objects: true
# The following would silence Doctrine bundle deprecation messages, but it's not straightforward
# to do while still being compliant across a range of ORM / DoctrineBundle versions.
#report_fields_where_declared: true
#enable_lazy_ghost_objects: true
mappings:
WebfactoryPolyglotBundle:
type: attribute
Expand Down

0 comments on commit 413d2c4

Please sign in to comment.