Skip to content
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

Merged
merged 3 commits into from Feb 4, 2022

Conversation

Zales0123
Copy link
Member

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

@Zales0123 Zales0123 added Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). DX Issues and PRs aimed at improving Developer eXperience. labels Jan 31, 2022
@Zales0123 Zales0123 requested a review from a team as a code owner January 31, 2022 09:55
@Zales0123 Zales0123 force-pushed the php8-syntax-core-bundle branch 2 times, most recently from fd8729b to 0350ae5 Compare February 3, 2022 14:51
@@ -99,7 +89,7 @@ protected function configureOptions(OptionsResolver $resolver): void
->setNormalizer(
'birthday',
/** @param string|\DateTimeInterface|null $value */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/** @param string|\DateTimeInterface|null $value */

public function __construct(
string $dataClass,
array $validationGroups,
?RepositoryInterface $channelPricingRepository = null
private ?\Sylius\Component\Resource\Repository\RepositoryInterface $channelPricingRepository = null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private ?\Sylius\Component\Resource\Repository\RepositoryInterface $channelPricingRepository = null
private ?RepositoryInterface $channelPricingRepository = null

$this->session = $session;
public function __construct(
private SessionInterface $session,
string $firewallContextName,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
string $firewallContextName,
private string $firewallContextName,

private SessionInterface $session,
string $firewallContextName,
private EventDispatcherInterface $eventDispatcher
) {
$this->sessionTokenParameter = sprintf('_security_%s', $firewallContextName);
$this->firewallContextName = $firewallContextName;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$this->firewallContextName = $firewallContextName;

Comment on lines 27 to 28
private string $firewallContextName;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private string $firewallContextName;

@lchrusciel lchrusciel merged commit 8900ccd into Sylius:1.11 Feb 4, 2022
@lchrusciel
Copy link
Member

Thanks, Mateusz! 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Issues and PRs aimed at improving Developer eXperience. Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants