Skip to content

Commit

Permalink
minor #148 fix the code style (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 0.3-dev branch.

Discussion
----------

fix the code style

Commits
-------

45e1df1 fix the code style
  • Loading branch information
xabbuh committed May 24, 2024
2 parents 921a5b8 + 45e1df1 commit 66da06d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Qossmic/ExceptionHandling/FormExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class FormExceptionHandler
private ?TranslatorInterface $translator;
private ?string $translationDomain;

public function __construct(ExceptionHandlerRegistry $exceptionHandlerRegistry, TranslatorInterface $translator = null, string $translationDomain = null)
public function __construct(ExceptionHandlerRegistry $exceptionHandlerRegistry, ?TranslatorInterface $translator = null, ?string $translationDomain = null)
{
$this->exceptionHandlerRegistry = $exceptionHandlerRegistry;
$this->translator = $translator;
Expand Down
4 changes: 2 additions & 2 deletions tests/Fixtures/Form/TypeMismatchPriceChangeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class TypeMismatchPriceChangeType extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$price = $builder->create('price', IntegerType::class, [
'handle_exception' => $options['expected_price_exception'],
])
'handle_exception' => $options['expected_price_exception'],
])
->addViewTransformer(new CallbackTransformer(
function ($value) {
if (!$value instanceof Price) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/Model/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Category
private $name;
private $parent;

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

Expand Down

0 comments on commit 66da06d

Please sign in to comment.