Skip to content

Commit 04cccf0

Browse files
Merge pull request #85 from TheDragonCode/3.x
`file_get_contents(...)`: Failed to open stream: No such file or directory
2 parents 45e8ef7 + da12be6 commit 04cccf0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Processors/Upgrade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ protected function clean(): void
6464

6565
protected function open(string $filename): string
6666
{
67-
return file_get_contents($this->oldPath($filename));
67+
return file_get_contents($this->oldPath($filename . '.php'));
6868
}
6969

7070
protected function store(string $filename, string $content): void
7171
{
72-
File::store($this->newPath($filename), $content);
72+
File::store($this->newPath($filename . '.php'), $content);
7373
}
7474

7575
protected function replaceNamespace(string $content): string
@@ -145,9 +145,9 @@ protected function callMigration(): void
145145
: __DIR__ . '/../../database/migrations/named/2022_08_18_180137_change_migration_actions_table.php';
146146

147147
$this->artisan('migrate', [
148-
'--path' => $path,
148+
'--path' => $path,
149149
'--realpath' => true,
150-
'--force' => true,
150+
'--force' => true,
151151
]);
152152
});
153153
}

0 commit comments

Comments
 (0)