Merge pull request #10053 from jrfnl/feature/php-8.1-null-to-non-nullable-fix-2
PHP 8.1: prevent a "null to non-nullable" deprecation notice [2] (test only fix)pull/10065/head
commit
cac4c190f1
|
@ -50,7 +50,7 @@ class InstallerTest extends TestCase
|
||||||
public function tearDown()
|
public function tearDown()
|
||||||
{
|
{
|
||||||
chdir($this->prevCwd);
|
chdir($this->prevCwd);
|
||||||
if (is_dir($this->tempComposerHome)) {
|
if (isset($this->tempComposerHome) && is_dir($this->tempComposerHome)) {
|
||||||
$fs = new Filesystem;
|
$fs = new Filesystem;
|
||||||
$fs->removeDirectory($this->tempComposerHome);
|
$fs->removeDirectory($this->tempComposerHome);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue