diff --git a/src/Concerns/InteractsWithTestCase.php b/src/Concerns/InteractsWithTestCase.php index 75a091e5..8e86bdb8 100644 --- a/src/Concerns/InteractsWithTestCase.php +++ b/src/Concerns/InteractsWithTestCase.php @@ -32,7 +32,7 @@ trait InteractsWithTestCase /** * The method attributes for test case. * - * @var array + * @var array * * @phpstan-var array, instance: TTestingFeature}> */ diff --git a/src/Foundation/Console/Actions/Action.php b/src/Foundation/Console/Actions/Action.php index b52518dd..0786a4ea 100644 --- a/src/Foundation/Console/Actions/Action.php +++ b/src/Foundation/Console/Actions/Action.php @@ -38,9 +38,8 @@ protected function pathLocation(string $path): string return implode('/', [$prefix, ltrim($path, '/')]); } - if (str_starts_with($path, $packagePath)) { - return sprintf('./%s', ltrim(str_replace($packagePath, '', $path), '/')); + return \sprintf('./%s', ltrim(str_replace($packagePath, '', $path), '/')); } return $path; diff --git a/src/Foundation/Console/VendorPublishCommand.php b/src/Foundation/Console/VendorPublishCommand.php new file mode 100644 index 00000000..d4b943f6 --- /dev/null +++ b/src/Foundation/Console/VendorPublishCommand.php @@ -0,0 +1,29 @@ +components->task(\sprintf( + 'Copying %s [%s] to [%s]', + $type, + $from, + $to, + )); + } +} diff --git a/src/Foundation/TestbenchServiceProvider.php b/src/Foundation/TestbenchServiceProvider.php index 640a205e..d7b42d3c 100644 --- a/src/Foundation/TestbenchServiceProvider.php +++ b/src/Foundation/TestbenchServiceProvider.php @@ -45,6 +45,7 @@ public function boot() Console\PurgeSkeletonCommand::class, Console\SyncSkeletonCommand::class, Console\ServeCommand::class, + Console\VendorPublishCommand::class, ]); } }