test: remove invalid return never

This commit is contained in:
kenjis 2024-03-30 17:54:57 +09:00
parent e843fec493
commit 91cad9efc1
No known key found for this signature in database
GPG Key ID: BD254878922AF198
2 changed files with 2 additions and 2 deletions

View File

@ -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';

View File

@ -122,7 +122,7 @@ final class MemcachedHandlerTest extends AbstractHandlerTest
$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);