Skip to content

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Aug 4, 2021

This PR fixes an issue where the variable $tmpDir of CovertTest is used in a data provider before it is initialized through the setUp() method. Inlining the variable avoids this trap and makes the whole code a bit clearer.

I spotted this while running the tests with PHP 8.1 where passing null to tempnam() triggers a deprecation warning.

@derrabus derrabus merged commit d558dcd into symfony:main Aug 4, 2021
@derrabus derrabus deleted the bugfix/inline-tmp-dir branch August 4, 2021 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants