Introduce type hinting in methods prototype (PHP >= 7.1)

This commit is contained in:
Molkobain
2020-08-26 21:21:56 +02:00
parent 77cd764b1c
commit 825c70c001
30 changed files with 246 additions and 191 deletions

View File

@@ -92,9 +92,9 @@ interface iUIBlock
*
* @param bool $bAbsoluteUrl
*
* @return array
* @return string[]
*/
public function GetJsFilesUrlRecursively($bAbsoluteUrl = false);
public function GetJsFilesUrlRecursively(bool $bAbsoluteUrl = false);
/**
* Return an array of the CSS files URL necessary for the block and all its sub blocks.
@@ -102,8 +102,8 @@ interface iUIBlock
*
* @param bool $bAbsoluteUrl
*
* @return array
* @return string[]
* @throws \Exception
*/
public function GetCssFilesUrlRecursively($bAbsoluteUrl = false);
public function GetCssFilesUrlRecursively(bool $bAbsoluteUrl = false);
}