-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Use PHP 7.4 syntax in Sylius components #13012
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Rector\Core\Configuration\Option; | ||
use Rector\Php74\Rector\Property\TypedPropertyRector; | ||
use Rector\Set\ValueObject\SetList; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
|
||
return static function (ContainerConfigurator $containerConfigurator): void | ||
{ | ||
$parameters = $containerConfigurator->parameters(); | ||
$parameters->set(Option::AUTO_IMPORT_NAMES, true); | ||
$parameters->set(Option::IMPORT_SHORT_CLASSES, false); | ||
|
||
$services = $containerConfigurator->services(); | ||
$services->set(TypedPropertyRector::class); | ||
}; |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -29,23 +29,18 @@ class Attribute implements AttributeInterface | |||||
/** @var mixed */ | ||||||
protected $id; | ||||||
|
||||||
/** @var string */ | ||||||
protected $code; | ||||||
protected ?string $code = null; | ||||||
|
||||||
/** @var string */ | ||||||
protected $type = TextAttributeType::TYPE; | ||||||
protected ?string $type = TextAttributeType::TYPE; | ||||||
|
||||||
/** @var array */ | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
protected $configuration = []; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
/** @var string */ | ||||||
protected $storageType; | ||||||
protected ?string $storageType = null; | ||||||
|
||||||
/** @var int */ | ||||||
protected $position; | ||||||
protected ?int $position = null; | ||||||
|
||||||
/** @var bool */ | ||||||
protected $translatable = true; | ||||||
protected bool $translatable = true; | ||||||
|
||||||
public function __construct() | ||||||
{ | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -19,11 +19,9 @@ | |||||
|
||||||
final class CachedPerRequestChannelContext implements ChannelContextInterface | ||||||
{ | ||||||
/** @var ChannelContextInterface */ | ||||||
private $decoratedChannelContext; | ||||||
private ChannelContextInterface $decoratedChannelContext; | ||||||
|
||||||
/** @var RequestStack */ | ||||||
private $requestStack; | ||||||
private RequestStack $requestStack; | ||||||
|
||||||
/** @var \SplObjectStorage<Request, ChannelInterface> */ | ||||||
private $requestToChannelMap; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's also |
||||||
|
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.