From d028c6c612e96126c276753b951bda185a879d84 Mon Sep 17 00:00:00 2001 From: Gijs Jorissen Date: Sat, 17 Jan 2026 15:11:29 +0100 Subject: [PATCH 1/4] Add support for Filament 5 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3508371..a9153c3 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ ], "require": { "php": "^8.2", - "filament/filament": "^4.0", + "filament/filament": "^4.0|^5.0", "spatie/laravel-package-tools": "^1.15.0" }, "require-dev": { From 99abe293512bd2e3a5715bc2ab707a5a8df94363 Mon Sep 17 00:00:00 2001 From: Bram Date: Tue, 20 Jan 2026 15:28:03 +0100 Subject: [PATCH 2/4] Remove unused TestsSkeleton --- src/Testing/TestsSkeleton.php | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/Testing/TestsSkeleton.php diff --git a/src/Testing/TestsSkeleton.php b/src/Testing/TestsSkeleton.php deleted file mode 100644 index 0e33b51..0000000 --- a/src/Testing/TestsSkeleton.php +++ /dev/null @@ -1,13 +0,0 @@ - Date: Tue, 20 Jan 2026 15:36:38 +0100 Subject: [PATCH 3/4] Fix test --- tests/Feature/MenuLoginsTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Feature/MenuLoginsTest.php b/tests/Feature/MenuLoginsTest.php index d15d7fd..fd7ade2 100644 --- a/tests/Feature/MenuLoginsTest.php +++ b/tests/Feature/MenuLoginsTest.php @@ -2,6 +2,7 @@ namespace DutchCodingCompany\FilamentDeveloperLogins\Tests\Feature; +use DutchCodingCompany\FilamentDeveloperLogins\Exceptions\ImplementationException; use DutchCodingCompany\FilamentDeveloperLogins\FilamentDeveloperLoginsPlugin; use DutchCodingCompany\FilamentDeveloperLogins\Livewire\MenuLogins; use DutchCodingCompany\FilamentDeveloperLogins\Tests\Fixtures\TestUser; @@ -91,6 +92,8 @@ public function test_component_is_only_rendered_in_panel_with_plugin(): void ->assertSuccessful() ->assertSeeLivewire(MenuLogins::class); + $this->expectException(ImplementationException::class); + $this->actingAs($user) ->get(Dashboard::getUrl(panel: $this->panelName.'-other')) ->assertSuccessful() From a5938b5e53df09f05a3080ba1910508f3fdbe9d4 Mon Sep 17 00:00:00 2001 From: Bram Date: Tue, 20 Jan 2026 15:48:35 +0100 Subject: [PATCH 4/4] Add error to baseline --- phpstan-baseline.neon | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 6d0ad8d..ceaf611 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -30,6 +30,12 @@ parameters: count: 2 path: tests/Feature/MenuLoginsTest.php + - + message: '#^Unable to resolve the template type TComponent in call to method Livewire\\LivewireManager\:\:test\(\)$#' + identifier: argument.templateType + count: 3 + path: tests/Feature/MenuLoginsTest.php + - message: '#^Access to an undefined property DutchCodingCompany\\FilamentDeveloperLogins\\Tests\\Fixtures\\TestUser\:\:\$is_admin\.$#' identifier: property.notFound