Skip to content

Commit

Permalink
Fix PHP 7.4 linting
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Mar 14, 2023
1 parent 9f891a5 commit d27ae2a
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions apps/dav/tests/unit/BackgroundJob/UserStatusAutomationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,16 @@
*/
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();
Expand All @@ -58,7 +63,7 @@ protected function setUp(): void {

}

protected function getAutomationMock(array $methods): MockObject|UserStatusAutomation {
protected function getAutomationMock(array $methods) {
if (empty($methods)) {
return new UserStatusAutomation(
$this->time,
Expand Down

0 comments on commit d27ae2a

Please sign in to comment.