1
0
Fork 0

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
Jordi Boggiano 2021-08-18 14:39:51 +02:00 committed by GitHub
commit cac4c190f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class InstallerTest extends TestCase
public function tearDown()
{
chdir($this->prevCwd);
if (is_dir($this->tempComposerHome)) {
if (isset($this->tempComposerHome) && is_dir($this->tempComposerHome)) {
$fs = new Filesystem;
$fs->removeDirectory($this->tempComposerHome);
}