]> source.dussan.org Git - nextcloud-server.git/commitdiff
test(workflowengine): Add Storage parameter strong types
authorprovokateurin <kate@provokateurin.de>
Tue, 1 Oct 2024 14:13:51 +0000 (16:13 +0200)
committerprovokateurin <kate@provokateurin.de>
Mon, 7 Oct 2024 13:00:07 +0000 (15:00 +0200)
Signed-off-by: provokateurin <kate@provokateurin.de>
apps/workflowengine/tests/Check/FileMimeTypeTest.php

index 0911a47f89485c44bede172db811a7f5619ff622..55aea3db1726da0d33f5ded95ecc042ccf7af09f 100644 (file)
@@ -16,11 +16,11 @@ use OCP\IRequest;
 use Test\TestCase;
 
 class TemporaryNoLocal extends Temporary {
-       public function instanceOfStorage($className): bool {
-               if ($className === '\OC\Files\Storage\Local') {
+       public function instanceOfStorage(string $class): bool {
+               if ($class === '\OC\Files\Storage\Local') {
                        return false;
                } else {
-                       return parent::instanceOfStorage($className);
+                       return parent::instanceOfStorage($class);
                }
        }
 }