Skip to content

Commit 4d2667e

Browse files
committed
reproduce
1 parent e4806bd commit 4d2667e

File tree

3 files changed

+24
-13
lines changed

3 files changed

+24
-13
lines changed

.github/workflows/ci.yml

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
include:
15-
- php: "8.1"
16-
- php: "8.2"
17-
- php: "8.3"
1815
- php: "8.4"
1916
PHP_CS_FIXER_IGNORE_ENV: 1
2017

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "friendsofphp/reproduce-playground",
33
"require": {
44
"php": "^8.1",
5-
"friendsofphp/php-cs-fixer": "3.72"
5+
"friendsofphp/php-cs-fixer": "3.73.0"
66
},
77
"autoload": {
88
"psr-4": {

src/Example.php

+23-9
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,28 @@
22

33
namespace PhpCsFixer\ReproducePlayground;
44

5+
use App\Entity\Processus\Champ\Champ;
6+
use App\Entity\Processus\Processus;
7+
use Symfony\Component\Validator\Constraints\Length;
8+
use Symfony\Component\Validator\Constraints\NotBlank;
59

6-
/**
7-
* @internal
8-
*/
9-
class Example
10+
class InformationsEtapeDto
1011
{
11-
12-
13-
14-
function foo() {}
15-
}
12+
public function __construct(
13+
/** Nécessaire pour le formulaire */
14+
public Processus $processus,
15+
#[NotBlank]
16+
#[Length(max: 100)]
17+
public string $libelle {
18+
set(?string $value) {
19+
$this->libelle = $value ?? "";
20+
}
21+
},
22+
/**
23+
* @var iterable<Champ<mixed>>
24+
*/
25+
public iterable $champsAffiches = [],
26+
public bool $archivable = false,
27+
public bool $commentable = false,
28+
) {}
29+
}

0 commit comments

Comments
 (0)