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 8a6e90e commit 2f2c5ccCopy full SHA for 2f2c5cc
src/NewCommand.php
@@ -152,10 +152,10 @@ protected function extract($zipFile, $directory)
152
{
153
$archive = new ZipArchive;
154
155
- $res = $archive->open($zipFile, ZipArchive::CHECKCONS);
+ $response = $archive->open($zipFile, ZipArchive::CHECKCONS);
156
157
- if ($res === ZipArchive::ER_NOZIP) {
158
- throw new RuntimeException('The zip file could not download. Check that you are able to access http://cabinet.laravel.com/latest.zip');
+ if ($response === ZipArchive::ER_NOZIP) {
+ throw new RuntimeException('The zip file could not download. Verify that you are able to access: http://cabinet.laravel.com/latest.zip');
159
}
160
161
$archive->extractTo($directory);
0 commit comments