Adapt to older PHP versions

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2022-10-31 13:59:22 +01:00
parent 53dc650e51
commit 2d64c52079
2 changed files with 3 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ class LabelService {
/** @var ChangeHelper */ /** @var ChangeHelper */
private $changeHelper; private $changeHelper;
/** @var LabelServiceValidator */ /** @var LabelServiceValidator */
private LabelServiceValidator $labelServiceValidator; private $labelServiceValidator;
public function __construct( public function __construct(
LabelMapper $labelMapper, LabelMapper $labelMapper,

View File

@@ -30,7 +30,8 @@ use OCA\Deck\BadRequestException;
use OCA\Deck\Validators\BaseValidator; use OCA\Deck\Validators\BaseValidator;
abstract class ValidatorTestBase extends \PHPUnit\Framework\TestCase { abstract class ValidatorTestBase extends \PHPUnit\Framework\TestCase {
protected BaseValidator $validator; /** @var BaseValidator */
protected $validator;
public function setUpValidatorTest($class = null): void { public function setUpValidatorTest($class = null): void {
parent::setUp(); parent::setUp();