Skip to content

Commit 66da06d

Browse files
committed
minor #148 fix the code style (xabbuh)
This PR was merged into the 0.3-dev branch. Discussion ---------- fix the code style Commits ------- 45e1df1 fix the code style
2 parents 921a5b8 + 45e1df1 commit 66da06d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Qossmic/ExceptionHandling/FormExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class FormExceptionHandler
2929
private ?TranslatorInterface $translator;
3030
private ?string $translationDomain;
3131

32-
public function __construct(ExceptionHandlerRegistry $exceptionHandlerRegistry, TranslatorInterface $translator = null, string $translationDomain = null)
32+
public function __construct(ExceptionHandlerRegistry $exceptionHandlerRegistry, ?TranslatorInterface $translator = null, ?string $translationDomain = null)
3333
{
3434
$this->exceptionHandlerRegistry = $exceptionHandlerRegistry;
3535
$this->translator = $translator;

tests/Fixtures/Form/TypeMismatchPriceChangeType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class TypeMismatchPriceChangeType extends AbstractType
2727
public function buildForm(FormBuilderInterface $builder, array $options): void
2828
{
2929
$price = $builder->create('price', IntegerType::class, [
30-
'handle_exception' => $options['expected_price_exception'],
31-
])
30+
'handle_exception' => $options['expected_price_exception'],
31+
])
3232
->addViewTransformer(new CallbackTransformer(
3333
function ($value) {
3434
if (!$value instanceof Price) {

tests/Fixtures/Model/Category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Category
2020
private $name;
2121
private $parent;
2222

23-
public function __construct(string $name, self $parent = null)
23+
public function __construct(string $name, ?self $parent = null)
2424
{
2525
$this->validateName($name);
2626

0 commit comments

Comments
 (0)