Skip to content

Commit 67fe4b3

Browse files
authored
Merge pull request #8329 from BacLuc/remove-empty-class-method
chore(api): fix "remove empty class method"
2 parents 5c0b4b7 + 6551c46 commit 67fe4b3

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
@@ -12,8 +12,6 @@
1212
* @extends Voter<string,Checklist|ChecklistItem>
1313
*/
1414
class ChecklistIsPrototypeVoter extends Voter {
15-
public function __construct() {}
16-
1715
protected function supports($attribute, $subject): bool {
1816
return 'CHECKLIST_IS_PROTOTYPE' === $attribute
1917
&& ($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)