We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59e041b commit ce5e4f7Copy full SHA for ce5e4f7
src/Traits/CopiesToBuildDirectory.php
@@ -108,15 +108,15 @@ public function copyToBuildDirectory(): bool
108
109
try {
110
copy($item->getPathname(), $target);
111
- } catch (Throwable $e) {
112
- warning('[WARNING] '.$e->getMessage());
113
- }
114
115
- if (PHP_OS_FAMILY !== 'Windows') {
116
- $perms = fileperms($item->getPathname());
117
- if ($perms !== false) {
118
- chmod($target, $perms);
+ if (PHP_OS_FAMILY !== 'Windows') {
+ $perms = fileperms($item->getPathname());
+ if ($perms !== false) {
+ chmod($target, $perms);
+ }
119
}
+ } catch (Throwable $e) {
+ warning('[WARNING] '.$e->getMessage());
120
121
122
0 commit comments