Skip to content

Commit 423f6b7

Browse files
committed
fix(26606): Correct test errors
1 parent 7f04a6e commit 423f6b7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Command/LmsInitPubChannelCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
4545
return 0;
4646
}
4747

48-
private function createTagWithCode(string $code, string $title, string $tagParentCode = null, bool $metatag = false): Tag
48+
private function createTagWithCode(string $code, string $title, ?string $tagParentCode = null, bool $metatag = false): Tag
4949
{
5050
if ($tag = $this->documentManager->getRepository(Tag::class)->findOneBy(['cod' => $code])) {
5151
throw new \Exception('Nothing done - Tag retrieved from DB id: '.$tag->getId().' cod: '.$tag->getCod());

Controller/SearchController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(
5555
*
5656
* @ParamConverter("blockedTag", options={"mapping": {"tagCod": "cod"}})
5757
*/
58-
public function multimediaObjectsAction(Request $request, Tag $blockedTag = null, bool $useTagAsGeneral = false): Response
58+
public function multimediaObjectsAction(Request $request, ?Tag $blockedTag = null, bool $useTagAsGeneral = false): Response
5959
{
6060
$request->attributes->set('only_public', true);
6161

Services/SSOService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public function __construct(
6060
EventDispatcherInterface $dispatcher,
6161
Environment $templating,
6262
bool $checkLDAPInfoToUpdatePermissionProfile,
63-
LDAPService $ldapService = null,
64-
RequestStack $requestStack = null,
63+
?LDAPService $ldapService = null,
64+
?RequestStack $requestStack = null,
6565
LoggerInterface $logger
6666
) {
6767
$this->documentManager = $documentManager;

0 commit comments

Comments
 (0)