Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 044af5a

Browse files
minor #40148 Re-enable triggering deprecations about return types (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- Re-enable triggering deprecations about return types | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Now that the three PRs linked in #40066 are merged, we can re-enable this check. Commits ------- 01ac9b1 Re-enable triggering deprecations about return types
2 parents 7c86c1d + 01ac9b1 commit 044af5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

phpunit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ if (!getenv('SYMFONY_PHPUNIT_VERSION')) {
1616
putenv('SYMFONY_PHPUNIT_VERSION=9.5');
1717
}
1818
}
19+
if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS') && \PHP_VERSION_ID >= 70200) {
20+
putenv('SYMFONY_PATCH_TYPE_DECLARATIONS=deprecations=1');
21+
}
1922
if (getcwd() === realpath(__DIR__.'/src/Symfony/Bridge/PhpUnit')) {
2023
putenv('SYMFONY_DEPRECATIONS_HELPER=disabled');
2124
}

0 commit comments

Comments
 (0)