Skip to content
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

fix(DirectoryCreator): Check if directory exists before creating #2848

Closed
wants to merge 1 commit into from
Closed

fix(DirectoryCreator): Check if directory exists before creating #2848

wants to merge 1 commit into from

Conversation

aldilop
Copy link

@aldilop aldilop commented Jan 2, 2024

Suppressing the error with '@' still calls custom error handlers.
We can check if the directory exists before calling mkdir.

'@' doesn't work like we want if the error handler is overwritten.
@phpstan-bot
Copy link
Collaborator

You've opened the pull request against the latest branch 1.11.x. If your code is relevant on 1.10.x and you want it to be released sooner, please rebase your pull request and change its target to 1.10.x.

@ondrejmirtes
Copy link
Member

I disagree. You should fix your custom error handler instead.

@ondrejmirtes
Copy link
Member

Just did this to improve compatibility with PHPUnit and PHP-Parser 5: 9dac90d

@aldilop
Copy link
Author

aldilop commented Jan 8, 2024

Thanks!

@aldilop aldilop deleted the patch-1 branch January 8, 2024 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants