aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests/DefinitionParameterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/tests/DefinitionParameterTest.php')
-rw-r--r--apps/files_external/tests/DefinitionParameterTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_external/tests/DefinitionParameterTest.php b/apps/files_external/tests/DefinitionParameterTest.php
index 3fc65eaf897..c535481bf66 100644
--- a/apps/files_external/tests/DefinitionParameterTest.php
+++ b/apps/files_external/tests/DefinitionParameterTest.php
@@ -1,4 +1,6 @@
<?php
+
+declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
@@ -48,7 +50,7 @@ class DefinitionParameterTest extends \Test\TestCase {
], $param->jsonSerialize());
}
- public function validateValueProvider() {
+ public static function validateValueProvider(): array {
return [
[Param::VALUE_TEXT, Param::FLAG_NONE, 'abc', true],
[Param::VALUE_TEXT, Param::FLAG_NONE, '', false],
@@ -66,9 +68,7 @@ class DefinitionParameterTest extends \Test\TestCase {
];
}
- /**
- * @dataProvider validateValueProvider
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('validateValueProvider')]
public function testValidateValue($type, $flags, $value, $success, $expectedValue = null): void {
$param = new Param('foo', 'bar');
$param->setType($type);