From 35dc36fb19976cf6bed438b0df9caa790a0768ba Mon Sep 17 00:00:00 2001 From: kenjis Date: Sat, 30 Mar 2024 17:54:57 +0900 Subject: [PATCH] test: remove invalid return never --- tests/_support/Autoloader/FatalLocator.php | 2 +- tests/system/Cache/Handlers/MemcachedHandlerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/_support/Autoloader/FatalLocator.php b/tests/_support/Autoloader/FatalLocator.php index 375380094d2b..578bd02ad9ae 100644 --- a/tests/_support/Autoloader/FatalLocator.php +++ b/tests/_support/Autoloader/FatalLocator.php @@ -34,7 +34,7 @@ class FatalLocator extends FileLocator * * @return false|string The path to the file, or false if not found. */ - public function locateFile(string $file, ?string $folder = null, string $ext = 'php'): never + public function locateFile(string $file, ?string $folder = null, string $ext = 'php') { $folder ??= 'null'; diff --git a/tests/system/Cache/Handlers/MemcachedHandlerTest.php b/tests/system/Cache/Handlers/MemcachedHandlerTest.php index 7f039164da02..bbb91bf6a8de 100644 --- a/tests/system/Cache/Handlers/MemcachedHandlerTest.php +++ b/tests/system/Cache/Handlers/MemcachedHandlerTest.php @@ -122,7 +122,7 @@ public function testDelete(): void $this->assertFalse($this->handler->delete(self::$dummy)); } - public function testDeleteMatching(): never + public function testDeleteMatching(): void { // Not implemented for Memcached, should throw an exception $this->expectException(Exception::class);