Skip to content

Commit

Permalink
Applied fixes from FlintCI
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh authored and OskarStark committed Apr 14, 2020
1 parent 18fcd25 commit 0ade582
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Admin/Extension/Gedmo/TranslatableAdminExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TranslatableAdminExtension extends AbstractTranslatableAdminExtension
*/
protected $translatableListener;

public function __construct(TranslatableChecker $translatableChecker, TranslatableListener $translatableListener = null)
public function __construct(TranslatableChecker $translatableChecker, ?TranslatableListener $translatableListener = null)
{
parent::__construct($translatableChecker);
$this->translatableListener = $translatableListener;
Expand Down
4 changes: 2 additions & 2 deletions src/Block/LocaleSwitcherBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class LocaleSwitcherBlockService extends AbstractBlockService
*/
public function __construct(
$templatingOrDeprecatedName = null,
EngineInterface $templating = null,
?EngineInterface $templating = null,
?bool $showCountryFlags = false
) {
parent::__construct($templatingOrDeprecatedName, $templating);
Expand Down Expand Up @@ -69,7 +69,7 @@ public function configureSettings(OptionsResolver $resolver)
);
}

public function execute(BlockContextInterface $blockContext, Response $response = null)
public function execute(BlockContextInterface $blockContext, ?Response $response = null)
{
return $this->renderPrivateResponse($blockContext->getTemplate(), [
'block_context' => $blockContext,
Expand Down
2 changes: 1 addition & 1 deletion src/Test/DoctrineOrmTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ abstract class DoctrineOrmTestCase extends \PHPUnit\Framework\TestCase
*
* @return EntityManager
*/
final protected function getMockSqliteEntityManager(EventManager $evm = null, Configuration $config = null)
final protected function getMockSqliteEntityManager(?EventManager $evm = null, ?Configuration $config = null)
{
$conn = [
'driver' => 'pdo_sqlite',
Expand Down

0 comments on commit 0ade582

Please sign in to comment.