summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-03-14 20:40:42 +0100
committerJoas Schilling <coding@schilljs.com>2023-03-14 22:13:41 +0100
commitd27ae2a5cec37fe2b8bd90da7b951b06656ff7e6 (patch)
tree4d405ef755ba7a736f53f145e049ea510b3cac76 /apps/dav/tests
parent9f891a563c1a8d88a1db3877c7693ae2dd3c50f4 (diff)
downloadnextcloud-server-d27ae2a5cec37fe2b8bd90da7b951b06656ff7e6.tar.gz
nextcloud-server-d27ae2a5cec37fe2b8bd90da7b951b06656ff7e6.zip
Fix PHP 7.4 linting
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r--apps/dav/tests/unit/BackgroundJob/UserStatusAutomationTest.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/apps/dav/tests/unit/BackgroundJob/UserStatusAutomationTest.php b/apps/dav/tests/unit/BackgroundJob/UserStatusAutomationTest.php
index 59438c7cd28..2fc6711da09 100644
--- a/apps/dav/tests/unit/BackgroundJob/UserStatusAutomationTest.php
+++ b/apps/dav/tests/unit/BackgroundJob/UserStatusAutomationTest.php
@@ -41,11 +41,16 @@ use Test\TestCase;
*/
class UserStatusAutomationTest extends TestCase {
- protected MockObject|ITimeFactory $time;
- protected MockObject|IJobList $jobList;
- protected MockObject|LoggerInterface $logger;
- protected MockObject|IManager $statusManager;
- protected MockObject|IConfig $config;
+ /** @var MockObject|ITimeFactory $time */
+ protected $time;
+ /** @var MockObject|IJobList $jobList */
+ protected $jobList;
+ /** @var MockObject|LoggerInterface $logger */
+ protected $logger;
+ /** @var MockObject|IManager $statusManager */
+ protected $statusManager;
+ /** @var MockObject|IConfig $config */
+ protected $config;
protected function setUp(): void {
parent::setUp();
@@ -58,7 +63,7 @@ class UserStatusAutomationTest extends TestCase {
}
- protected function getAutomationMock(array $methods): MockObject|UserStatusAutomation {
+ protected function getAutomationMock(array $methods) {
if (empty($methods)) {
return new UserStatusAutomation(
$this->time,