Skip to content

Commit caee4d5

Browse files
Merge pull request #286 from TheDragonCode/6.x
Fixed Uncaught ParseError: syntax error
2 parents de3261e + 83ce202 commit caee4d5

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Filesystem/Directory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function names(string $path, ?callable $callback = null, bool $recursive
9191
/**
9292
* Create a directory at the specified path.
9393
*/
94-
public function make(string $path, int $mode = 0o755): bool
94+
public function make(string $path, int $mode = 0755): bool
9595
{
9696
return ! $this->doesntExist($path) || mkdir($path, $mode, true);
9797
}
@@ -170,7 +170,7 @@ public function ensureDelete(array|string $paths): void
170170
*
171171
* @throws \DragonCode\Support\Exceptions\DirectoryNotFoundException
172172
*/
173-
public function ensureDirectory(string $path, int $mode = 0o755, bool $can_delete = false): void
173+
public function ensureDirectory(string $path, int $mode = 0755, bool $can_delete = false): void
174174
{
175175
if ($can_delete && $this->exists($path)) {
176176
$this->delete($path);

src/Filesystem/File.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function names(string $path, ?callable $callback = null, bool $recursive
7575
*
7676
* @return string returns the full path to the saved file
7777
*/
78-
public function store(string $path, string $content, int $mode = 0o755): string
78+
public function store(string $path, string $content, int $mode = 0755): string
7979
{
8080
Directory::ensureDirectory(Path::dirname($path), $mode);
8181

@@ -113,7 +113,7 @@ public function load(string $path): array
113113
/**
114114
* Copies file.
115115
*/
116-
public function copy(string $source, string $target, int $mode = 0o755): void
116+
public function copy(string $source, string $target, int $mode = 0755): void
117117
{
118118
Directory::ensureDirectory(Path::dirname($target), $mode);
119119

@@ -125,7 +125,7 @@ public function copy(string $source, string $target, int $mode = 0o755): void
125125
*
126126
* @throws \DragonCode\Support\Exceptions\FileNotFoundException
127127
*/
128-
public function move(string $source, string $target, int $mode = 0o755): void
128+
public function move(string $source, string $target, int $mode = 0755): void
129129
{
130130
Directory::ensureDirectory(Path::dirname($target), $mode);
131131

tests/Unit/Filesystem/Directory/EnsureDirectoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testEnsureDirectory()
4747
$this->assertTrue(Directory::exists($path1));
4848
$this->assertTrue(Directory::exists($path2));
4949

50-
Directory::ensureDirectory($path, 0o755, true);
50+
Directory::ensureDirectory($path, 0755, true);
5151

5252
$this->assertTrue(Directory::exists($path));
5353
$this->assertTrue(Directory::doesntExist($path1));

0 commit comments

Comments
 (0)