Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0871f9

Browse files
committed
PHP 7.4 syntax in bundles vol.3
1 parent fb4158e commit e0871f9

161 files changed

Lines changed: 365 additions & 698 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Sylius/Bundle/ApiBundle/ApiPlatform/Bridge/Symfony/Bundle/Action/SwaggerUiAction.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,25 @@
3434
*/
3535
final class SwaggerUiAction
3636
{
37-
private $resourceNameCollectionFactory;
37+
private ResourceNameCollectionFactoryInterface $resourceNameCollectionFactory;
3838

39-
private $resourceMetadataFactory;
39+
private ResourceMetadataFactoryInterface $resourceMetadataFactory;
4040

41-
private $normalizer;
41+
private NormalizerInterface $normalizer;
4242

43-
private $twig;
43+
private TwigEnvironment $twig;
4444

45-
private $urlGenerator;
45+
private UrlGeneratorInterface $urlGenerator;
4646

47-
private $title;
47+
private string $title;
4848

49-
private $description;
49+
private string $description;
5050

51-
private $version;
51+
private string $version;
5252

53-
private $showWebby;
53+
private bool $showWebby;
5454

55-
private $formats;
55+
private ?array $formats;
5656

5757
private $oauthEnabled;
5858

@@ -72,17 +72,17 @@ final class SwaggerUiAction
7272

7373
private $formatsProvider;
7474

75-
private $swaggerUiEnabled;
75+
private bool $swaggerUiEnabled;
7676

77-
private $reDocEnabled;
77+
private bool $reDocEnabled;
7878

79-
private $graphqlEnabled;
79+
private bool $graphqlEnabled;
8080

81-
private $graphiQlEnabled;
81+
private bool $graphiQlEnabled;
8282

83-
private $graphQlPlaygroundEnabled;
83+
private bool $graphQlPlaygroundEnabled;
8484

85-
private $swaggerVersions;
85+
private array $swaggerVersions;
8686

8787
/**
8888
* @param int[] $swaggerVersions

src/Sylius/Bundle/ApiBundle/ApiPlatform/Bridge/Symfony/Routing/CachedRouteNameResolver.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ final class CachedRouteNameResolver implements RouteNameResolverInterface
2727
{
2828
use CachedTrait;
2929

30-
/** @var RouteNameResolverInterface */
31-
private $decorated;
30+
private RouteNameResolverInterface $decorated;
3231

33-
/** @var PathPrefixProviderInterface */
34-
private $pathPrefixProvider;
32+
private PathPrefixProviderInterface $pathPrefixProvider;
3533

3634
public function __construct(
3735
CacheItemPoolInterface $cacheItemPool,

src/Sylius/Bundle/ApiBundle/ApiPlatform/Bridge/Symfony/Routing/RouteNameResolver.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@
2626
*/
2727
final class RouteNameResolver implements RouteNameResolverInterface
2828
{
29-
/** @var RouterInterface */
30-
private $router;
29+
private RouterInterface $router;
3130

32-
/** @var PathPrefixProviderInterface */
33-
private $pathPrefixProvider;
31+
private PathPrefixProviderInterface $pathPrefixProvider;
3432

3533
public function __construct(RouterInterface $router, PathPrefixProviderInterface $pathPrefixProvider)
3634
{

src/Sylius/Bundle/ApiBundle/Applicator/ArchivingShippingMethodApplicator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
/** @experimental */
2020
final class ArchivingShippingMethodApplicator implements ArchivingShippingMethodApplicatorInterface
2121
{
22-
/** @var DateTimeProvider */
23-
private $calendar;
22+
private DateTimeProvider $calendar;
2423

2524
public function __construct(DateTimeProvider $calendar)
2625
{

src/Sylius/Bundle/ApiBundle/Applicator/OrderStateMachineTransitionApplicator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
/** @experimental */
2121
final class OrderStateMachineTransitionApplicator implements OrderStateMachineTransitionApplicatorInterface
2222
{
23-
/** @var StateMachineFactoryInterface */
24-
private $stateMachineFactory;
23+
private StateMachineFactoryInterface $stateMachineFactory;
2524

2625
public function __construct(StateMachineFactoryInterface $stateMachineFactory)
2726
{

src/Sylius/Bundle/ApiBundle/Applicator/PaymentStateMachineTransitionApplicator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
/** @experimental */
2121
final class PaymentStateMachineTransitionApplicator implements PaymentStateMachineTransitionApplicatorInterface
2222
{
23-
/** @var StateMachineFactoryInterface */
24-
private $stateMachineFactory;
23+
private StateMachineFactoryInterface $stateMachineFactory;
2524

2625
public function __construct(StateMachineFactoryInterface $stateMachineFactory)
2726
{

src/Sylius/Bundle/ApiBundle/Applicator/ProductReviewStateMachineTransitionApplicator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
/** @experimental */
2121
final class ProductReviewStateMachineTransitionApplicator implements ProductReviewStateMachineTransitionApplicatorInterface
2222
{
23-
/** @var StateMachineFactoryInterface */
24-
private $stateMachineFactory;
23+
private StateMachineFactoryInterface $stateMachineFactory;
2524

2625
public function __construct(StateMachineFactoryInterface $stateMachineFactory)
2726
{

src/Sylius/Bundle/ApiBundle/Applicator/ShipmentStateMachineTransitionApplicator.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@
2222
/** @experimental */
2323
final class ShipmentStateMachineTransitionApplicator implements ShipmentStateMachineTransitionApplicatorInterface
2424
{
25-
/** @var StateMachineFactoryInterface */
26-
private $stateMachineFactory;
25+
private StateMachineFactoryInterface $stateMachineFactory;
2726

28-
/** @var EventDispatcherInterface */
29-
private $eventDispatcher;
27+
private EventDispatcherInterface $eventDispatcher;
3028

3129
public function __construct(
3230
StateMachineFactoryInterface $stateMachineFactory,

src/Sylius/Bundle/ApiBundle/Behat/Tester/ApiScenarioEventDispatchingScenarioTester.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
/** @experimental */
2727
final class ApiScenarioEventDispatchingScenarioTester implements ScenarioTester
2828
{
29-
/** @var ScenarioTester */
30-
private $baseTester;
29+
private ScenarioTester $baseTester;
3130

3231
public function __construct(ScenarioTester $baseTester)
3332
{

src/Sylius/Bundle/ApiBundle/Changer/PaymentMethodChanger.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@
2323
/** @experimental */
2424
final class PaymentMethodChanger implements PaymentMethodChangerInterface
2525
{
26-
/** @var PaymentRepositoryInterface */
27-
private $paymentRepository;
26+
private PaymentRepositoryInterface $paymentRepository;
2827

29-
/** @var PaymentMethodRepositoryInterface */
30-
private $paymentMethodRepository;
28+
private PaymentMethodRepositoryInterface $paymentMethodRepository;
3129

3230
public function __construct(
3331
PaymentRepositoryInterface $paymentRepository,

0 commit comments

Comments
 (0)