Skip to content

Commit

Permalink
Fix PHPStan on PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed May 10, 2024
1 parent f3e562a commit d57e159
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/Constraints/CountryVatNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,14 @@

use Symfony\Component\Validator\Constraint;

/**
* @Annotation
*/
class CountryVatNumber extends Constraint

Check failure on line 9 in src/Constraints/CountryVatNumber.php

View workflow job for this annotation

GitHub Actions / Static checks (PHP 8.1, Symfony ^5.4)

PropertyNotSetInConstructor

src/Constraints/CountryVatNumber.php:9:7: PropertyNotSetInConstructor: Property FluxSE\SyliusEUVatPlugin\Constraints\CountryVatNumber::$groups is not defined in constructor of FluxSE\SyliusEUVatPlugin\Constraints\CountryVatNumber or in any methods called in the constructor (see https://psalm.dev/074)

Check failure on line 9 in src/Constraints/CountryVatNumber.php

View workflow job for this annotation

GitHub Actions / Static checks (PHP 8.1, Symfony ^6.4)

PropertyNotSetInConstructor

src/Constraints/CountryVatNumber.php:9:7: PropertyNotSetInConstructor: Property FluxSE\SyliusEUVatPlugin\Constraints\CountryVatNumber::$groups is not defined in constructor of FluxSE\SyliusEUVatPlugin\Constraints\CountryVatNumber or in any methods called in the constructor (see https://psalm.dev/074)

Check failure on line 9 in src/Constraints/CountryVatNumber.php

View workflow job for this annotation

GitHub Actions / Static checks (PHP 8.3, Symfony ^5.4)

PropertyNotSetInConstructor

src/Constraints/CountryVatNumber.php:9:7: PropertyNotSetInConstructor: Property FluxSE\SyliusEUVatPlugin\Constraints\CountryVatNumber::$groups is not defined in constructor of FluxSE\SyliusEUVatPlugin\Constraints\CountryVatNumber or in any methods called in the constructor (see https://psalm.dev/074)

Check failure on line 9 in src/Constraints/CountryVatNumber.php

View workflow job for this annotation

GitHub Actions / Static checks (PHP 8.3, Symfony ^6.4)

PropertyNotSetInConstructor

src/Constraints/CountryVatNumber.php:9:7: PropertyNotSetInConstructor: Property FluxSE\SyliusEUVatPlugin\Constraints\CountryVatNumber::$groups is not defined in constructor of FluxSE\SyliusEUVatPlugin\Constraints\CountryVatNumber or in any methods called in the constructor (see https://psalm.dev/074)
{
public const CORRESPONDENCE_ERROR = '403';

/** @var string */
public $message = 'flux_se.sylius_eu_vat.country_vat_number.invalid';
public const CORRESPONDENCE_ERROR = '403';

Check failure on line 12 in src/Constraints/CountryVatNumber.php

View workflow job for this annotation

GitHub Actions / Static checks (PHP 8.3, Symfony ^5.4)

MissingClassConstType

src/Constraints/CountryVatNumber.php:12:18: MissingClassConstType: Class constant "FluxSE\SyliusEUVatPlugin\Constraints\CountryVatNumber::CORRESPONDENCE_ERROR" should have a declared type. (see https://psalm.dev/359)

Check failure on line 12 in src/Constraints/CountryVatNumber.php

View workflow job for this annotation

GitHub Actions / Static checks (PHP 8.3, Symfony ^6.4)

MissingClassConstType

src/Constraints/CountryVatNumber.php:12:18: MissingClassConstType: Class constant "FluxSE\SyliusEUVatPlugin\Constraints\CountryVatNumber::CORRESPONDENCE_ERROR" should have a declared type. (see https://psalm.dev/359)

/** @var string[] */
public $groups = [];
public string $message = 'flux_se.sylius_eu_vat.country_vat_number.invalid';

/** @var string */
public $vatNumberPath = 'vatNumber';
public string $vatNumberPath = 'vatNumber';

public function getTargets()
{
Expand Down

0 comments on commit d57e159

Please sign in to comment.