From 61e5a68dd0359ae0ddab637e59765b1a78cd5574 Mon Sep 17 00:00:00 2001 From: Eser DENIZ Date: Mon, 18 May 2026 22:21:04 +0200 Subject: [PATCH] style: import FQ class names to satisfy pint --test The Linting workflow was switched from auto-fix mode to --test in #1, which surfaces pre-existing style issues that the old workflow silently fixed and force-committed. Replace fully-qualified class references with imports in cli/flushdns.php and tests/Unit/ArchTest.php so pint passes. Co-Authored-By: Claude Opus 4.7 (1M context) --- cli/flushdns.php | 8 +++++--- tests/Unit/ArchTest.php | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/cli/flushdns.php b/cli/flushdns.php index 6826897..dd0ad35 100644 --- a/cli/flushdns.php +++ b/cli/flushdns.php @@ -1,16 +1,18 @@ #!/usr/bin/env php register(); +if (class_exists(Provider::class)) { + (new Provider)->register(); } $ipVersion = null; diff --git a/tests/Unit/ArchTest.php b/tests/Unit/ArchTest.php index 40d2966..2659771 100644 --- a/tests/Unit/ArchTest.php +++ b/tests/Unit/ArchTest.php @@ -1,5 +1,7 @@ expect('KnotsPHP\FlushDNS\Enums') ->toBeEnums(); @@ -14,7 +16,7 @@ arch('exceptions') ->expect('KnotsPHP\FlushDNS\Exceptions') - ->toExtend(\KnotsPHP\FlushDNS\Exceptions\Exception::class) - ->ignoring(\KnotsPHP\FlushDNS\Exceptions\Exception::class); + ->toExtend(Exception::class) + ->ignoring(Exception::class); arch('debug')->preset()->php();