New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP 8.0 syntax in Core Bundle #13565
Conversation
Zales0123
commented
Jan 31, 2022
Q | A |
---|---|
Branch? | 1.11 |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Related tickets | extracted from #13562 for better readability |
License | MIT |
fd8729b
to
0350ae5
Compare
b3c5410
to
160361f
Compare
src/Sylius/Bundle/CoreBundle/Fixture/Factory/AdminUserExampleFactory.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/CoreBundle/Fixture/Factory/CatalogPromotionExampleFactory.php
Outdated
Show resolved
Hide resolved
@@ -99,7 +89,7 @@ protected function configureOptions(OptionsResolver $resolver): void | |||
->setNormalizer( | |||
'birthday', | |||
/** @param string|\DateTimeInterface|null $value */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** @param string|\DateTimeInterface|null $value */ |
public function __construct( | ||
string $dataClass, | ||
array $validationGroups, | ||
?RepositoryInterface $channelPricingRepository = null | ||
private ?\Sylius\Component\Resource\Repository\RepositoryInterface $channelPricingRepository = null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private ?\Sylius\Component\Resource\Repository\RepositoryInterface $channelPricingRepository = null | |
private ?RepositoryInterface $channelPricingRepository = null |
$this->session = $session; | ||
public function __construct( | ||
private SessionInterface $session, | ||
string $firewallContextName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string $firewallContextName, | |
private string $firewallContextName, |
private SessionInterface $session, | ||
string $firewallContextName, | ||
private EventDispatcherInterface $eventDispatcher | ||
) { | ||
$this->sessionTokenParameter = sprintf('_security_%s', $firewallContextName); | ||
$this->firewallContextName = $firewallContextName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$this->firewallContextName = $firewallContextName; |
private string $firewallContextName; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private string $firewallContextName; |
Thanks, Mateusz! 🥇 |