diff --git a/lib/Service/LabelService.php b/lib/Service/LabelService.php index 2be4b5d9d..ffe5b8e4e 100644 --- a/lib/Service/LabelService.php +++ b/lib/Service/LabelService.php @@ -42,7 +42,7 @@ class LabelService { /** @var ChangeHelper */ private $changeHelper; /** @var LabelServiceValidator */ - private LabelServiceValidator $labelServiceValidator; + private $labelServiceValidator; public function __construct( LabelMapper $labelMapper, diff --git a/tests/unit/Validators/ValidatorTestBase.php b/tests/unit/Validators/ValidatorTestBase.php index cce03f6ed..81f1cc76e 100644 --- a/tests/unit/Validators/ValidatorTestBase.php +++ b/tests/unit/Validators/ValidatorTestBase.php @@ -30,7 +30,8 @@ use OCA\Deck\BadRequestException; use OCA\Deck\Validators\BaseValidator; abstract class ValidatorTestBase extends \PHPUnit\Framework\TestCase { - protected BaseValidator $validator; + /** @var BaseValidator */ + protected $validator; public function setUpValidatorTest($class = null): void { parent::setUp();