Add strict_types declaration to 9 scaffold/config files that were
missed in the earlier dx-audit pass (bcb40d4). All non-blade PHP
files in the repository now enforce strict typing per CLAUDE.md
conventions.
Files: bootstrap/app.php, bootstrap/providers.php, config/core.php,
database/seeders/DatabaseSeeder.php, public/index.php, routes/*.php,
app/Providers/AppServiceProvider.php
Fixes #5
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
28 lines
825 B
PHP
28 lines
825 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Illuminate\Foundation\Application;
|
|
use Illuminate\Foundation\Configuration\Exceptions;
|
|
use Illuminate\Foundation\Configuration\Middleware;
|
|
|
|
return Application::configure(basePath: dirname(__DIR__))
|
|
->withProviders([
|
|
// Core PHP Framework
|
|
\Core\LifecycleEventProvider::class,
|
|
\Core\Website\Boot::class,
|
|
\Core\Front\Boot::class,
|
|
\Core\Mod\Boot::class,
|
|
])
|
|
->withRouting(
|
|
web: __DIR__.'/../routes/web.php',
|
|
api: __DIR__.'/../routes/api.php',
|
|
commands: __DIR__.'/../routes/console.php',
|
|
health: '/up',
|
|
)
|
|
->withMiddleware(function (Middleware $middleware) {
|
|
\Core\Front\Boot::middleware($middleware);
|
|
})
|
|
->withExceptions(function (Exceptions $exceptions) {
|
|
//
|
|
})->create();
|