Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/FieldType/RichText/RichTextStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class RichTextStorage extends GatewayBasedStorage
* @param \Ibexa\Contracts\Core\FieldType\StorageGateway $gateway
* @param \Psr\Log\LoggerInterface $logger
*/
public function __construct(StorageGateway $gateway, LoggerInterface $logger = null)
public function __construct(StorageGateway $gateway, ?LoggerInterface $logger = null)
{
parent::__construct($gateway);
$this->logger = $logger;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/RichText/Converter/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct(
LocationService $locationService,
ContentService $contentService,
RouterInterface $router,
LoggerInterface $logger = null
?LoggerInterface $logger = null
) {
$this->locationService = $locationService;
$this->contentService = $contentService;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/RichText/Converter/Render/Embed.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Embed extends Render implements Converter
'replace' => '_self',
];

public function __construct(RendererInterface $renderer, LoggerInterface $logger = null)
public function __construct(RendererInterface $renderer, ?LoggerInterface $logger = null)
{
parent::__construct($renderer);
$this->logger = $logger;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/RichText/Converter/Render/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Template extends Render implements Converter
public function __construct(
RendererInterface $renderer,
Converter $richTextConverter,
LoggerInterface $logger = null
?LoggerInterface $logger = null
) {
$this->richTextConverter = $richTextConverter;
$this->logger = $logger ?? new NullLogger();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/RichText/ConverterDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct($converterMap)
* @param string $namespace
* @param \Ibexa\Contracts\FieldTypeRichText\RichText\Converter|null $converter
*/
public function addConverter($namespace, Converter $converter = null)
public function addConverter($namespace, ?Converter $converter = null)
{
$this->mapping[$namespace] = $converter;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/RichText/Exception/InvalidXmlException.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class InvalidXmlException extends InvalidArgumentException
* @param array $errors
* @param \Throwable|null $previous
*/
public function __construct(string $argumentName, array $errors = [], Throwable $previous = null)
public function __construct(string $argumentName, array $errors = [], ?Throwable $previous = null)
{
$messages = [];
foreach ($errors as $error) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/RichText/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function __construct(
string $tagConfigurationNamespace,
string $styleConfigurationNamespace,
string $embedConfigurationNamespace,
LoggerInterface $logger = null,
?LoggerInterface $logger = null,
array $customTagsConfiguration = [],
array $customStylesConfiguration = []
) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/RichText/Validator/ValidatorDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct($validatorMap)
* @param string $namespace
* @param \Ibexa\FieldTypeRichText\eZ\RichText\Validator $validator
*/
public function addValidator($namespace, ValidatorInterface $validator = null)
public function addValidator($namespace, ?ValidatorInterface $validator = null)
{
$this->mapping[$namespace] = $validator;
}
Expand Down
Loading