8000 feature #23262 Add scalar typehints/return types (chalasr, xabbuh) · symfony/property-access@19a954c · GitHub
[go: up one dir, main page]

Skip to content

Commit 19a954c

Browse files
committed
feature #23262 Add scalar typehints/return types (chalasr, xabbuh)
This PR was merged into the 4.0-dev branch. Discussion ---------- Add scalar typehints/return types | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no (final, already breaks if doc not respected) | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony/symfony#23242 (comment) | License | MIT | Doc PR | n/a Commits ------- 7b1715b078 [Yaml] use scalar type hints where possible 6ce70e4bf9 Add scalar typehints/return types on final/internal/private code
2 parents 40f0af4 + 5cfb8d6 commit 19a954c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

PropertyAccess.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,12 @@ final class PropertyAccess
2323
*
2424
* @return PropertyAccessor
2525
*/
26-
public static function createPropertyAccessor()
26+
public static function createPropertyAccessor(): PropertyAccessor
2727
{
2828
return self::createPropertyAccessorBuilder()->getPropertyAccessor();
2929
}
3030

31-
/**
32-
* Creates a property accessor builder.
33-
*
34-
* @return PropertyAccessorBuilder
35-
*/
36-
public static function createPropertyAccessorBuilder()
31+
public static function createPropertyAccessorBuilder(): PropertyAccessorBuilder
3732
{
3833
return new PropertyAccessorBuilder();
3934
}

0 commit comments

Comments
 (0)
0