Skip to content

Commit 2fbf91c

Browse files
Do not use uninitialized property
1 parent 321b0ba commit 2fbf91c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unit/Framework/Assert/assertDirectoryIsNotReadableTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ protected function setUp(): void
3838

3939
protected function tearDown(): void
4040
{
41+
if (!isset($this->directory)) {
42+
return;
43+
}
44+
4145
@rmdir($this->directory);
4246
}
4347

0 commit comments

Comments
 (0)