File tree Expand file tree Collapse file tree 3 files changed +32
-3
lines changed Expand file tree Collapse file tree 3 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 38
38
"symfony/security-csrf" : " ~5.0 || ~6.0" ,
39
39
"phpunit/phpunit" : " ^9.5" ,
40
40
"symplify/easy-coding-standard" : " ^9.4" ,
41
- "symplify/coding-standard" : " ^9.4"
41
+ "symplify/coding-standard" : " ^9.4" ,
42
+ "symfony/intl" : " ^5"
42
43
}
43
44
}
Original file line number Diff line number Diff line change @@ -379,6 +379,34 @@ Feature: It is possible to interactively fill in a form from the CLI
379
379
)
380
380
"""
381
381
382
+ Scenario : The demo form
383
+ When I run the command "form:demo" and I provide as input
384
+ | Input |
385
+ | Menno |
386
+ | y |
387
+ | Main street |
388
+ | n |
389
+ | test @example .com |
390
+ | NL |
391
+ | 2001 -04 -01 |
392
+ And the output should contain
393
+ """
394
+ Array
395
+ (
396
+ [name] => Menno
397
+
398
+ [country] => NL
399
+ [addresses] => Array
400
+ (
401
+ [0] => Matthias\SymfonyConsoleForm\Tests\Form\Data\Address Object
402
+ (
403
+ [street] => Main street
404
+ )
405
+ )
406
+ [dateOfBirth] => 2001-04-01T00:00:00+0000
407
+ )
408
+ """
409
+
382
410
Scenario : Non-compound form type in interactive mode
383
411
When I run the command "form:non_compound_color" and I provide as input "blue" with parameters
384
412
| Parameter | Value |
@@ -418,4 +446,4 @@ Feature: It is possible to interactively fill in a form from the CLI
418
446
[value] => Rue du Faubourg Saint-Honoré
419
447
)
420
448
)
421
- """
449
+ """
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class Address
9
9
/**
10
10
* @param $street
11
11
*/
12
- public function __construct ($ street )
12
+ public function __construct (? string $ street = null )
13
13
{
14
14
$ this ->street = $ street ;
15
15
}
You can’t perform that action at this time.
0 commit comments