Skip to content

Commit

Permalink
test: remove invalid return never
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Apr 2, 2024
1 parent 4afd905 commit 35dc36f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/_support/Autoloader/FatalLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
2 changes: 1 addition & 1 deletion tests/system/Cache/Handlers/MemcachedHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 35dc36f

Please sign in to comment.