From 151ca98e0a1bf56f07a9efc1ac28d11099988cb9 Mon Sep 17 00:00:00 2001 From: JonPurvis Date: Tue, 17 Nov 2026 21:26:10 +0000 Subject: [PATCH] update namespace --- README.md | 10 +++++----- composer.json | 7 +++++-- extension.neon | 2 +- src/Autoload.php | 2 +- src/PHPStan/ExpectationMethods.php | 2 +- .../ExpectationMethodsClassReflectionExtension.php | 2 +- src/Plugin.php | 2 +- 7 files changed, 15 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index eccacff..848ee2e 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@

Lawman

- GitHub Workflow Status (master) - Total Downloads - Latest Version - License + GitHub Workflow Status (master) + Total Downloads + Latest Version + License

@@ -128,7 +128,7 @@ the extension is registered automatically. Otherwise, add the following to your ```neon includes: - - vendor/jonpurvis/lawman/extension.neon + - vendor/saloonphp/lawman/extension.neon ``` ## Contributing diff --git a/composer.json b/composer.json index d4ef2ad..aa2758d 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "jonpurvis/lawman", + "name": "saloonphp/lawman", "description": "A PestPHP Plugin to help with architecture testing SaloonPHP integrations", "keywords": [ "php", @@ -12,6 +12,9 @@ "saloon" ], "license": "MIT", + "replace": { + "jonpurvis/lawman": "self.version" + }, "authors": [ { "name": "Jon Purvis", @@ -25,7 +28,7 @@ }, "autoload": { "psr-4": { - "JonPurvis\\Lawman\\": "src/", + "Saloon\\Lawman\\": "src/", "Tests\\Fixtures\\Arch\\": "tests/Fixtures/Arch" }, "files": [ diff --git a/extension.neon b/extension.neon index e91beac..ae8e3c9 100644 --- a/extension.neon +++ b/extension.neon @@ -1,5 +1,5 @@ services: - - class: JonPurvis\Lawman\PHPStan\ExpectationMethodsClassReflectionExtension + class: Saloon\Lawman\PHPStan\ExpectationMethodsClassReflectionExtension tags: - phpstan.broker.methodsClassReflectionExtension diff --git a/src/Autoload.php b/src/Autoload.php index 74f6a0f..a6a7774 100644 --- a/src/Autoload.php +++ b/src/Autoload.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace JonPurvis\Lawman; +namespace Saloon\Lawman; require_once __DIR__.'/Expectations/Authentication.php'; require_once __DIR__.'/Expectations/Cache.php'; diff --git a/src/PHPStan/ExpectationMethods.php b/src/PHPStan/ExpectationMethods.php index 87d8dec..4bc7b15 100644 --- a/src/PHPStan/ExpectationMethods.php +++ b/src/PHPStan/ExpectationMethods.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace JonPurvis\Lawman\PHPStan; +namespace Saloon\Lawman\PHPStan; use Pest\Expectation; diff --git a/src/PHPStan/ExpectationMethodsClassReflectionExtension.php b/src/PHPStan/ExpectationMethodsClassReflectionExtension.php index 1c463c6..2968559 100644 --- a/src/PHPStan/ExpectationMethodsClassReflectionExtension.php +++ b/src/PHPStan/ExpectationMethodsClassReflectionExtension.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace JonPurvis\Lawman\PHPStan; +namespace Saloon\Lawman\PHPStan; use Pest\Expectation; use PHPStan\Reflection\ClassReflection; diff --git a/src/Plugin.php b/src/Plugin.php index 36a9053..2bb2513 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace JonPurvis\Lawman; +namespace Saloon\Lawman; // use Pest\Contracts\Plugins\AddsOutput; // use Pest\Contracts\Plugins\HandlesArguments;