Skip to content

Commit 6551c46

Browse files
committed
api: fix "remove empty class method"
1 parent 0f64970 commit 6551c46

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

api/src/Security/Voter/ChecklistIsPrototypeVoter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
* @extends Voter<string,Checklist|ChecklistItem>
1212
*/
1313
class ChecklistIsPrototypeVoter extends Voter {
14-
public function __construct() {}
15-
1614
protected function supports($attribute, $subject): bool {
1715
return 'CHECKLIST_IS_PROTOTYPE' === $attribute
1816
&& ($subject instanceof Checklist || $subject instanceof ChecklistItem);

api/src/Validator/AssertContainsAtLeastOneManagerValidator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
use Symfony\Component\Validator\Exception\UnexpectedValueException;
1111

1212
class AssertContainsAtLeastOneManagerValidator extends ConstraintValidator {
13-
public function __construct() {}
14-
1513
public function validate($value, Constraint $constraint): void {
1614
if (!$constraint instanceof AssertContainsAtLeastOneManager) {
1715
throw new UnexpectedTypeException($constraint, AssertContainsAtLeastOneManager::class);

api/src/Validator/ContentNode/AssertContentTypeCompatibleValidator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
class AssertContentTypeCompatibleValidator extends ConstraintValidator {
1414
use ClassInfoTrait;
1515

16-
public function __construct() {}
17-
1816
public function validate($value, Constraint $constraint): void {
1917
if (!$constraint instanceof AssertContentTypeCompatible) {
2018
throw new UnexpectedTypeException($constraint, AssertContentTypeCompatible::class);

api/src/Validator/ContentNode/AssertSlotSupportedByParentValidator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
use Symfony\Component\Validator\Exception\UnexpectedValueException;
1010

1111
class AssertSlotSupportedByParentValidator extends ConstraintValidator {
12-
public function __construct() {}
13-
1412
public function validate($value, Constraint $constraint): void {
1513
if (!$constraint instanceof AssertSlotSupportedByParent) {
1614
throw new UnexpectedTypeException($constraint, AssertSlotSupportedByParent::class);

0 commit comments

Comments
 (0)