Skip to content

Commit

Permalink
copage: 037829: CoPage: ILIAS\COPage\Link\LinkManager::ILIAS\COPage\L…
Browse files Browse the repository at this point in the history
…ink\{closure}(): Argument #1 () must of type int, string given
  • Loading branch information
alex40724 committed Sep 17, 2023
1 parent 58cdfc4 commit 10929df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Services/COPage/Link/LinkManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct()

protected function getDefaultMediaCollector(): \Closure
{
return fn (int $id) => \ilMediaItem::_getMapAreasIntLinks($id);
return fn(int $id) => \ilMediaItem::_getMapAreasIntLinks($id);
}

public function getInternalLinks(
Expand Down Expand Up @@ -89,7 +89,7 @@ public function getInternalLinks(
$id_arr = explode("_", $oid);
$id = $id_arr[count($id_arr) - 1];

$med_links = $media_collector($id);
$med_links = $media_collector((int) $id);
foreach ($med_links as $key => $med_link) {
$links[$key] = $med_link;
}
Expand Down Expand Up @@ -178,7 +178,7 @@ public function resolveIntLinks(

protected function getDefaultLMTypeLookuper(): \Closure
{
return fn (int $id) => \ilLMObject::_lookupType($id);
return fn(int $id) => \ilLMObject::_lookupType($id);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/PC/class.PCFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function getByNode(
$mal_node = $child_node->firstChild;
//echo "ilPageObject::getContentObject:nodename:".$mal_node->node_name().":<br>";
$id_arr = explode("_", $mal_node->getAttribute("OriginId"));
$mob_id = $id_arr[count($id_arr) - 1];
$mob_id = (int) $id_arr[count($id_arr) - 1];

// see also #32331
if (\ilObject::_lookupType($mob_id) !== "mob") {
Expand Down
2 changes: 1 addition & 1 deletion Services/Repository/Service/Form/class.FormAdapterGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
namespace ILIAS\Repository\Form;

use ILIAS\UI\Component\Input\Container\Form;
use ILIAS\UI\Component\Input\Field\FormInput;
use ILIAS\UI\Component\Input\Container\Form\FormInput;

/**
* @author Alexander Killing <[email protected]>
Expand Down

0 comments on commit 10929df

Please sign in to comment.