mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-27 04:28:44 +02:00
N°3526 - Clean up pass on UIBlocks
- Move UIBlock::ENUM_BLOCK_FILES_TYPE_XXX to iUIBlock - Add PHPDoc - Remove Object return type hint on overloadable methods - Add scalar return type hint - Add type hint on parameters
This commit is contained in:
@@ -74,7 +74,7 @@ class Breadcrumbs extends UIBlock
|
||||
/**
|
||||
* @return array|null
|
||||
*/
|
||||
public function GetNewEntry()
|
||||
public function GetNewEntry(): ?array
|
||||
{
|
||||
return $this->aNewEntry;
|
||||
}
|
||||
@@ -85,7 +85,7 @@ class Breadcrumbs extends UIBlock
|
||||
* @throws \CoreException
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function GetJsWidgetOptions()
|
||||
public function GetJsWidgetOptions(): array
|
||||
{
|
||||
$aJsWidgetOptions = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user