Commit 8b70334
committed
minor #19763 [Testing] Fix nullable entitymanager in functional repository tests (Constantin Ross)
This PR was merged into the 6.4 branch.
Discussion
----------
[Testing] Fix nullable entitymanager in functional repository tests
In Version 6.4 the a type was introduced to the $entityManager property in this example.
In the tearDown() method the entityManager is set to null (`$this->entityManager = null;`).
Docs (v5.x): https://symfony.com/doc/5.x/testing/database.html#functional-testing-of-a-doctrine-repository
Docs (v6.4): https://symfony.com/doc/6.4/testing/database.html#functional-testing-of-a-doctrine-repository
**Currently:**
```php
private EntityManager $entityManager;
```
**Change:**
```php
private ?EntityManager $entityManager;
```
Commits
-------
c4ed2ed Fix nullable entitymanager in functional repository tests1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments