test: Make extending tests also static already

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/52851/head
Joas Schilling 2025-05-15 08:29:33 +07:00
parent ea0229dc86
commit 57a49a50aa
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
2 changed files with 2 additions and 2 deletions

@ -45,7 +45,7 @@ class FtpTest extends \Test\Files\Storage\Storage {
/**
* ftp has no proper way to handle spaces at the end of file names
*/
public function directoryProvider() {
public static function directoryProvider(): array {
return array_filter(parent::directoryProvider(), function ($item) {
return substr($item[0], -1) !== ' ';
});

@ -49,7 +49,7 @@ class SmbTest extends \Test\Files\Storage\Storage {
parent::tearDown();
}
public function directoryProvider() {
public static function directoryProvider(): array {
// doesn't support leading/trailing spaces
return [['folder']];
}