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 Dec 24, 2024
2 parents e53b376 + 8a95e11 commit f1d7113
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
12 changes: 12 additions & 0 deletions CHANGELOG-7.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench-core`.

## 7.51.0

Released: 2024-12-24

### Added

* Add ability to symlink directory in from skeleton to package.

### Changes

* Use `realpath()` on `vendor:publish` output.

## 7.50.1

Released: 2024-12-19
Expand Down
11 changes: 10 additions & 1 deletion src/Foundation/Console/VendorPublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,17 @@ class VendorPublishCommand extends Command
protected function status($from, $to, $type)
{
$format = function ($path) use ($type) {
if ($type === 'directory' && is_link($path)) {
return $path;
}

$realpath = realpath($path);

if ($realpath !== false) {
$path = $realpath;
}

return match (true) {
$type === 'directory' && is_link($path) => $path,
$this->files->exists($path) => $path,
default => (string) realpath($path),
};
Expand Down

0 comments on commit f1d7113

Please sign in to comment.