Skip to content

PHP 8.0 syntax in Core Bundle#13565

Merged
lchrusciel merged 3 commits intoSylius:1.11from
Zales0123:php8-syntax-core-bundle
Feb 4, 2022
Merged

PHP 8.0 syntax in Core Bundle#13565
lchrusciel merged 3 commits intoSylius:1.11from
Zales0123:php8-syntax-core-bundle

Conversation

@Zales0123
Copy link
Copy Markdown
Contributor

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
@Zales0123 Zales0123 force-pushed the php8-syntax-core-bundle branch from b3c5410 to 160361f Compare February 4, 2022 10:28
@@ -99,7 +89,7 @@ protected function configureOptions(OptionsResolver $resolver): void
->setNormalizer(
'birthday',
/** @param string|\DateTimeInterface|null $value */
Copy link
Copy Markdown
Contributor

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 */

string $dataClass,
array $validationGroups,
?RepositoryInterface $channelPricingRepository = null
private ?\Sylius\Component\Resource\Repository\RepositoryInterface $channelPricingRepository = null
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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 EventDispatcherInterface $eventDispatcher
) {
$this->sessionTokenParameter = sprintf('_security_%s', $firewallContextName);
$this->firewallContextName = $firewallContextName;
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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.

2 participants