laravel/artisan
Anders Jenbo cf5aed8c2e
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
Improve static analysis by adding type hints for $app in artisan and public/index.php (#6531)
* 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>
2025-02-05 12:01:25 +01:00

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);