Skip to content

Conversation

@PrinsFrank
Copy link
Contributor

When creating directories, whenever those already exist mkdir is still called and reports an E_WARNING. Although it is supressed, those still end up in the error handler.

When this PR is merged, directories are checked first for existence. If so, mkdir is not called anymore, not triggering the E_WARNING.

@PrinsFrank
Copy link
Contributor Author

Related to phpstan/phpstan#5204 and phpstan/phpstan#4309

@ondrejmirtes
Copy link
Member

Hi, thanks, this looks harmless so I can merge it.

@ondrejmirtes ondrejmirtes merged commit 2a1597b into phpstan:master Jul 7, 2021
@PrinsFrank PrinsFrank deleted the dont-create-directory-when-already-existing branch July 7, 2021 11:43
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