Some PHP 8.4 deprecration fixes regarding NULL assignment to cast values on class instantiation

This commit is contained in:
2025-03-15 16:04:40 +11:00
parent 4a84c25ac7
commit f667250b2c
4 changed files with 5 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ use LdapRecord\Models\Model as LdapRecord;
*/
class LoginObjectclassRule implements Rule
{
public function passes(LdapRecord $user, Eloquent $model = null): bool
public function passes(LdapRecord $user,?Eloquent $model=NULL): bool
{
if ($x=config('pla.login.objectclass')) {
return count(array_intersect($user->objectclass,$x));