diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4697766..20188d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,9 +12,6 @@ jobs: fail-fast: false matrix: include: - - php: "8.1" - - php: "8.2" - - php: "8.3" - php: "8.4" PHP_CS_FIXER_IGNORE_ENV: 1 diff --git a/composer.json b/composer.json index 978a664..b847153 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "friendsofphp/reproduce-playground", "require": { "php": "^8.1", - "friendsofphp/php-cs-fixer": "3.72" + "friendsofphp/php-cs-fixer": "3.73.1" }, "autoload": { "psr-4": { diff --git a/src/Example.php b/src/Example.php index 3c888d9..a7c03b5 100644 --- a/src/Example.php +++ b/src/Example.php @@ -2,14 +2,28 @@ namespace PhpCsFixer\ReproducePlayground; +use App\Entity\Processus\Champ\Champ; +use App\Entity\Processus\Processus; +use Symfony\Component\Validator\Constraints\Length; +use Symfony\Component\Validator\Constraints\NotBlank; -/** - * @internal - */ -class Example +class InformationsEtapeDto { - - - - function foo() {} -} + public function __construct( + /** Nécessaire pour le formulaire */ + public Processus $processus, + #[NotBlank] + #[Length(max: 100)] + public string $libelle { + set(?string $value) { + $this->libelle = $value ?? ""; + } + }, + /** + * @var iterable> + */ + public iterable $champsAffiches = [], + public bool $archivable = false, + public bool $commentable = false, + ) {} +} \ No newline at end of file