mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
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)
This commit is contained in:
commit
cac4c190f1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue