From 6adcd6ec0ba859a5e6f47b676f3a3671ce9a7c0a Mon Sep 17 00:00:00 2001 From: Snider Date: Tue, 17 Mar 2026 09:08:38 +0000 Subject: [PATCH] fix(dx): add strict_types, composer scripts, and Pint config - Add declare(strict_types=1) to all 12 PHP files missing it - Add composer test/lint scripts to composer.json - Add laravel/pint to require-dev for PSR-12 compliance - Add pint.json with Laravel preset - Update CLAUDE.md commands to match monorepo conventions Co-Authored-By: Virgil --- CLAUDE.md | 12 ++++++++---- app/Providers/AppServiceProvider.php | 2 ++ bootstrap/app.php | 2 ++ bootstrap/providers.php | 2 ++ composer.json | 5 +++++ config/core.php | 2 ++ database/seeders/DatabaseSeeder.php | 2 ++ pint.json | 6 ++++++ public/index.php | 2 ++ routes/api.php | 2 ++ routes/console.php | 2 ++ routes/web.php | 2 ++ src/Routes/admin.php | 2 ++ src/Tests/UseCase/DevToolsBasic.php | 2 ++ tests/TestCase.php | 2 ++ 15 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 pint.json diff --git a/CLAUDE.md b/CLAUDE.md index ddb781e..de1132c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -15,10 +15,14 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ```bash # Tests -./vendor/bin/phpunit # All tests -./vendor/bin/phpunit --testsuite=Unit # Unit only -./vendor/bin/phpunit --testsuite=Feature # Feature only -./vendor/bin/phpunit --filter="test name" # Single test +composer test # All tests +composer test -- --testsuite=Unit # Unit only +composer test -- --testsuite=Feature # Feature only +composer test -- --filter="test name" # Single test + +# Code style (PSR-12 via Laravel Pint) +composer lint # Fix code style +./vendor/bin/pint --dirty # Format changed files only # Frontend npm run dev # Vite dev server diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 452e6b6..8325058 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -1,5 +1,7 @@