Skip to content

Commit

Permalink
Avoid redeclaring properties.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed May 22, 2020
1 parent c3dde33 commit ce23dff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 1 addition & 8 deletions src/Testing/Concerns/InteractsWithPublishedFiles.php
Expand Up @@ -7,13 +7,6 @@

trait InteractsWithPublishedFiles
{
/**
* Stubs files.
*
* @var array
*/
protected $files = [];

/**
* The filesystem implementation.
*
Expand Down Expand Up @@ -125,7 +118,7 @@ protected function assertFilenameNotExists(string $file): void
protected function cleanUpFiles(): void
{
$this->filesystem->delete(
Collection::make($this->files)
Collection::make($this->files ?? [])
->transform(function ($file) {
return $this->app->basePath($file);
})
Expand Down
7 changes: 7 additions & 0 deletions src/Testing/TestCase.php
Expand Up @@ -10,6 +10,13 @@ class TestCase extends \Orchestra\Testbench\TestCase
{
use Concerns\InteractsWithPublishedFiles;

/**
* Stubs files.
*
* @var array
*/
protected $files = [];

/**
* Setup the test environment.
*/
Expand Down

0 comments on commit ce23dff

Please sign in to comment.