Skip to content

Commit

Permalink
Merge branch '7.x' into 8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed Nov 30, 2024
2 parents 5196822 + aa78608 commit c6215e8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Foundation/Actions/CreateVendorSymlink.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class CreateVendorSymlink
* @param string $workingPath
*/
public function __construct(
public string $workingPath
protected string $workingPath
) {}

/**
Expand Down
9 changes: 8 additions & 1 deletion src/Foundation/Console/Concerns/CopyTestbenchFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,17 @@ protected function copyTestbenchDotEnvFile(
$testbenchEnvFilename = $this->testbenchEnvironmentFile();

$configurationFile = LazyCollection::make(static function () use ($testbenchEnvFilename) {
$defaultTestbenchEnvFilename = '.env';

yield $testbenchEnvFilename;
yield "{$testbenchEnvFilename}.example";
yield "{$testbenchEnvFilename}.dist";
})->map(static fn ($file) => join_paths($workingPath, $file))

yield $defaultTestbenchEnvFilename;
yield "{$defaultTestbenchEnvFilename}.example";
yield "{$defaultTestbenchEnvFilename}.dist";
})->unique()
->map(static fn ($file) => join_paths($workingPath, $file))
->filter(static fn ($file) => $filesystem->isFile($file))
->first();

Expand Down
4 changes: 2 additions & 2 deletions src/Workbench/Actions/AddAssetSymlinkFolders.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ final class AddAssetSymlinkFolders
* @param \Orchestra\Testbench\Contracts\Config $config
*/
public function __construct(
public Filesystem $files,
public ConfigContract $config
protected Filesystem $files,
protected ConfigContract $config
) {}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Workbench/Actions/RemoveAssetSymlinkFolders.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ final class RemoveAssetSymlinkFolders
* @param \Orchestra\Testbench\Contracts\Config $config
*/
public function __construct(
public Filesystem $files,
public ConfigContract $config
protected Filesystem $files,
protected ConfigContract $config
) {}

/**
Expand Down

0 comments on commit c6215e8

Please sign in to comment.