N°8851 - Explicit nullable in functions parameters (#857)

This commit is contained in:
Lenaick
2026-03-26 15:52:57 +01:00
committed by GitHub
parent 398b47d5d1
commit aae6d324f9
42 changed files with 52 additions and 52 deletions

View File

@@ -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) {

View File

@@ -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;