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

Skip to content

Conversation

fabacino
Copy link
Contributor

@fabacino fabacino commented Sep 4, 2025

In case the xdebug extension is not loaded, the directory variable does not get initialized in _setUp() which results in a type error inside _tearDown().

 [TypeError] Codeception\Util\FileSystem::deleteDir(): Argument #1 ($dir) must be of type string, null given, called in tests/unit/C3Test.php on line 36

This PR just adds a guard to fix this issue.

In case the xdebug extension is not loaded, the directory variable
contains `null`.
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.

1 participant