File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ public function getTargets()
297
297
*
298
298
* @internal
299
299
*/
300
- public function __sleep ()
300
+ public function __sleep (): array
301
301
{
302
302
// Initialize "groups" option if it is not set
303
303
$ this ->groups ;
Original file line number Diff line number Diff line change @@ -35,12 +35,12 @@ public function __construct($options = null)
35
35
parent ::__construct ($ options );
36
36
}
37
37
38
- final protected function getCompositeOption ()
38
+ final protected function getCompositeOption (): string
39
39
{
40
40
return 'constraints ' ;
41
41
}
42
42
43
- final public function validatedBy ()
43
+ final public function validatedBy (): string
44
44
{
45
45
return CompoundValidator::class;
46
46
}
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class ForwardingOptionCompound extends Compound
46
46
{
47
47
public $ min ;
48
48
49
- public function getDefaultOption ()
49
+ public function getDefaultOption (): ? string
50
50
{
51
51
return 'min ' ;
52
52
}
Original file line number Diff line number Diff line change @@ -373,12 +373,12 @@ class ClassCompositeConstraint extends Composite
373
373
{
374
374
public $ nested ;
375
375
376
- public function getDefaultOption ()
376
+ public function getDefaultOption (): ? string
377
377
{
378
378
return $ this ->getCompositeOption ();
379
379
}
380
380
381
- protected function getCompositeOption ()
381
+ protected function getCompositeOption (): string
382
382
{
383
383
return 'nested ' ;
384
384
}
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ public function loadClassMetadata(ClassMetadata $metadata): bool
176
176
177
177
class PropertyGetterInterfaceConstraintLoader implements LoaderInterface
178
178
{
179
- public function loadClassMetadata (ClassMetadata $ metadata )
179
+ public function loadClassMetadata (ClassMetadata $ metadata ): bool
180
180
{
181
181
if (PropertyGetterInterface::class === $ metadata ->getClassName ()) {
182
182
$ metadata ->addGetterConstraint ('property ' , new NotBlank ());
Original file line number Diff line number Diff line change @@ -121,12 +121,12 @@ class PropertyCompositeConstraint extends Composite
121
121
{
122
122
public $ nested ;
123
123
124
- public function getDefaultOption ()
124
+ public function getDefaultOption (): ? string
125
125
{
126
126
return $ this ->getCompositeOption ();
127
127
}
128
128
129
- protected function getCompositeOption ()
129
+ protected function getCompositeOption (): string
130
130
{
131
131
return 'nested ' ;
132
132
}
You can’t perform that action at this time.
0 commit comments