From eb90702febe99ba368ad94ee49f74f73343c37bf Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Mar 2026 13:45:36 +0000 Subject: [PATCH 1/2] chore: add PHPStan/Larastan to dev dependencies Add larastan/larastan ^3.0 to require-dev and create phpstan.neon config at level 5 covering all source directories. Adds a `composer analyse` script shortcut. Fixes #26 Co-Authored-By: Claude Opus 4.6 (1M context) --- composer.json | 2 ++ phpstan.neon | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 phpstan.neon diff --git a/composer.json b/composer.json index 159889a..1d3acfb 100644 --- a/composer.json +++ b/composer.json @@ -12,6 +12,7 @@ "lthn/php": "*" }, "require-dev": { + "larastan/larastan": "^3.0", "laravel/pint": "^1.18", "orchestra/testbench": "^9.0|^10.0", "pestphp/pest": "^3.0" @@ -35,6 +36,7 @@ } }, "scripts": { + "analyse": "phpstan analyse", "lint": "pint", "test": "pest" }, diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..bca4599 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,33 @@ +includes: + - vendor/larastan/larastan/extension.neon + +parameters: + level: 5 + + paths: + - Boot.php + - Concerns + - Console + - Contracts + - Controllers + - Database + - Enums + - Events + - Exceptions + - Features + - Jobs + - Listeners + - Mail + - Middleware + - Models + - Notifications + - Routes + - Rules + - Scopes + - Services + - View + + excludePaths: + - vendor + + checkMissingIterableValueType: false -- 2.45.3 From 2df0698f996f68c7bf245f926ae36380963d1415 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Mar 2026 13:48:04 +0000 Subject: [PATCH 2/2] docs: fix incorrect namespace in README.md usage examples Change Core\Mod\Tenant\Services to Core\Tenant\Services to match the actual namespace used in source files. Fixes #28 Co-Authored-By: Claude Opus 4.6 (1M context) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3a71b6e..56e578f 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,8 @@ php artisan migrate ### Workspace Management ```php -use Core\Mod\Tenant\Services\WorkspaceManager; -use Core\Mod\Tenant\Services\WorkspaceService; +use Core\Tenant\Services\WorkspaceManager; +use Core\Tenant\Services\WorkspaceService; // Get current workspace $workspace = app(WorkspaceManager::class)->current(); @@ -57,7 +57,7 @@ $workspace = app(WorkspaceService::class)->create([ ### Entitlements ```php -use Core\Mod\Tenant\Services\EntitlementService; +use Core\Tenant\Services\EntitlementService; $entitlements = app(EntitlementService::class); -- 2.45.3