Skip to content

Inline $tmpDir #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2021
Merged

Inline $tmpDir #97

merged 1 commit into from
Aug 4, 2021

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