From 6805ad90cce860e15430ca8f5ae9004ddcd56928 Mon Sep 17 00:00:00 2001 From: Eser DENIZ Date: Mon, 18 May 2026 22:03:23 +0200 Subject: [PATCH] style: apply pint formatting fixes Imports the fully-qualified class references hoisted to use statements, matching the pint config now enforced in CI via --test mode. Co-Authored-By: Claude Opus 4.7 (1M context) --- cli/sysinfo.php | 3 ++- examples/basic.php | 4 +++- tests/Unit/ArchTest.php | 12 ++++++++---- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/cli/sysinfo.php b/cli/sysinfo.php index 616af19..9cddfe4 100644 --- a/cli/sysinfo.php +++ b/cli/sysinfo.php @@ -2,6 +2,7 @@ register(); + (new Provider)->register(); } $ipVersion = null; diff --git a/examples/basic.php b/examples/basic.php index b6f8257..4c35a47 100644 --- a/examples/basic.php +++ b/examples/basic.php @@ -1,9 +1,11 @@ friendlyName().PHP_EOL; diff --git a/tests/Unit/ArchTest.php b/tests/Unit/ArchTest.php index d7fd8cf..e6629d6 100644 --- a/tests/Unit/ArchTest.php +++ b/tests/Unit/ArchTest.php @@ -1,5 +1,9 @@ expect('KnotsPHP\System\Enums') ->toBeEnums(); @@ -14,10 +18,10 @@ arch('exceptions') ->expect('KnotsPHP\System\Exceptions') - ->toExtend(\KnotsPHP\System\Exceptions\Exception::class) - ->ignoring(\KnotsPHP\System\Exceptions\Exception::class) - ->ignoring(\KnotsPHP\System\Exceptions\InvalidArgumentException::class) - ->ignoring(\KnotsPHP\System\Exceptions\RuntimeException::class); + ->toExtend(Exception::class) + ->ignoring(Exception::class) + ->ignoring(InvalidArgumentException::class) + ->ignoring(RuntimeException::class); arch('library.operating-system') ->expect('KnotsPHP\System\OperatingSystems')