mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
* feat: add type hints for $app in artisan and public/index.php Added PHPDoc type hints for the $app variable to improve static analysis support in PHPStan and PHPStorm. This prevents tools from incorrectly flagging the variable and enhances developer experience. No functional changes; only improves code readability and IDE support. * Update artisan * Update index.php --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
19 lines
425 B
PHP
Executable File
19 lines
425 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
|
|
use Illuminate\Foundation\Application;
|
|
use Symfony\Component\Console\Input\ArgvInput;
|
|
|
|
define('LARAVEL_START', microtime(true));
|
|
|
|
// Register the Composer autoloader...
|
|
require __DIR__.'/vendor/autoload.php';
|
|
|
|
// Bootstrap Laravel and handle the command...
|
|
/** @var Application $app */
|
|
$app = require_once __DIR__.'/bootstrap/app.php';
|
|
|
|
$status = $app->handleCommand(new ArgvInput);
|
|
|
|
exit($status);
|