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

@@ -38,7 +38,7 @@ class AttributeExist extends Constraint
* @param array|null $aGroups
* @param mixed|null $oPayload
*/
public function __construct(string $sOqlPropertyPath = null, string $sFilter = null, array $aOptions = [], ?array $aGroups = null, mixed $oPayload = null)
public function __construct(?string $sOqlPropertyPath = null, ?string $sFilter = null, array $aOptions = [], ?array $aGroups = null, mixed $oPayload = null)
{
if ($sOqlPropertyPath === null) {
throw new InvalidArgumentException('The argument "sOqlPropertyPath" must be set.');