mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°8851 - Explicit nullable in functions parameters (#857)
This commit is contained in:
@@ -161,7 +161,7 @@ class DependencyHandler
|
||||
* @return void
|
||||
* @throws FormBlockException
|
||||
*/
|
||||
private function CheckDependencies(FormInterface|FormBuilderInterface $oForm, string $sOutputBlock = null, string $sEventType = null): void
|
||||
private function CheckDependencies(FormInterface|FormBuilderInterface $oForm, ?string $sOutputBlock = null, ?string $sEventType = null): void
|
||||
{
|
||||
$aImpactedBlocks = $this->aDependentBlocks;
|
||||
if ($sOutputBlock !== null) {
|
||||
|
||||
@@ -171,7 +171,7 @@ class DependencyMap
|
||||
*
|
||||
* @return array|null
|
||||
*/
|
||||
public function GetBlocksImpactedBy(string $sBlockName, callable $oFilter = null): ?array
|
||||
public function GetBlocksImpactedBy(string $sBlockName, ?callable $oFilter = null): ?array
|
||||
{
|
||||
if (!array_key_exists($sBlockName, $this->aBlocksImpactedBy)) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user