DX audit and fix (PHP) #7

Merged
Snider merged 1 commit from agent/dx-audit-and-fix--laravel-php-package into dev 2026-03-24 11:36:11 +00:00
15 changed files with 43 additions and 4 deletions
Showing only changes of commit 6adcd6ec0b - Show all commits

View file

@ -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

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace App\Providers;
use Illuminate\Support\ServiceProvider;

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
return [
App\Providers\AppServiceProvider::class,
];

View file

@ -18,6 +18,7 @@
"core/php-admin": "@dev"
},
"require-dev": {
"laravel/pint": "^1.0",
"phpunit/phpunit": "^11.5"
},
"autoload": {
@ -30,6 +31,10 @@
"Tests\\": "tests/"
}
},
"scripts": {
"test": "phpunit",
"lint": "pint"
},
"extra": {
"laravel": {
"providers": [

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
return [
/*
|--------------------------------------------------------------------------

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Seeders;
use Illuminate\Database\Seeder;

6
pint.json Normal file
View file

@ -0,0 +1,6 @@
{
"preset": "laravel",
"rules": {
"declare_strict_types": true
}
}

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Illuminate\Support\Facades\Route;
// API routes are registered via Core modules

View file

@ -1,3 +1,5 @@
<?php
declare(strict_types=1);
// Console commands are registered via Core modules

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Illuminate\Support\Facades\Route;
Route::get('/', function () {

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Illuminate\Support\Facades\Route;
/*

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
/**
* UseCase: Developer Tools (Basic Flow)
*

View file

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;