File tree 3 files changed +17
-20
lines changed
tests/Stubs/Symfony/Component/Form
3 files changed +17
-20
lines changed Original file line number Diff line number Diff line change 1
- <?php
1
+ <?php declare (strict_types = 1 );
2
2
3
- declare (strict_types=1 );
4
-
5
- namespace Stubs \Symfony \Component \Form ;
3
+ namespace PHPStan \Stubs \Symfony \Component \Form ;
6
4
7
5
class DataClass
8
6
{
9
- /**
10
- * @var int
11
- */
7
+
8
+ /** @var int */
12
9
public $ foo ;
13
10
14
- /**
15
- * @var string
16
- */
11
+ /** @var string */
17
12
public $ bar ;
13
+
18
14
}
Original file line number Diff line number Diff line change 1
- <?php
1
+ <?php declare (strict_types = 1 );
2
2
3
- namespace Stubs \Symfony \Component \Form ;
3
+ namespace PHPStan \ Stubs \Symfony \Component \Form ;
4
4
5
5
use Symfony \Component \Form \AbstractType ;
6
6
use Symfony \Component \Form \Extension \Core \Type \NumberType ;
13
13
*/
14
14
class DataClassType extends AbstractType
15
15
{
16
+
16
17
public function buildForm (FormBuilderInterface $ builder , array $ options ): void
17
18
{
18
19
$ builder
@@ -29,4 +30,5 @@ public function configureOptions(OptionsResolver $resolver): void
29
30
])
30
31
;
31
32
}
33
+
32
34
}
Original file line number Diff line number Diff line change 1
- <?php
1
+ <?php declare (strict_types = 1 );
2
2
3
- namespace Stubs \Symfony \Component \Form ;
3
+ namespace PHPStan \ Stubs \Symfony \Component \Form ;
4
4
5
5
use Symfony \Component \Form \FormFactoryInterface ;
6
6
7
7
class FormFactoryAwareClass
8
8
{
9
- /**
10
- * @var FormFactoryInterface
11
- */
9
+
10
+ /** @var FormFactoryInterface */
12
11
private $ formFactory ;
13
12
14
- public function __construct (
15
- FormFactoryInterface $ formFactory
16
- ) {
13
+ public function __construct (FormFactoryInterface $ formFactory )
14
+ {
17
15
$ this ->formFactory = $ formFactory ;
18
16
}
19
17
@@ -40,4 +38,5 @@ private function thisOnlyAcceptsDataClass(DataClass $data): void
40
38
private function thisOnlyAcceptsDataClassOrNull (?DataClass $ data ): void
41
39
{
42
40
}
41
+
43
42
}
You can’t perform that action at this time.
0 commit comments