From 2d64c52079bcebd959b15eab1d522a5da326f87d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 31 Oct 2022 13:59:22 +0100 Subject: [PATCH] Adapt to older PHP versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/LabelService.php | 2 +- tests/unit/Validators/ValidatorTestBase.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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();