From 91866f6fc1e8b826f8bb14ed8c9c2840d5744885 Mon Sep 17 00:00:00 2001 From: Tom Schlick Date: Fri, 22 Nov 2024 10:33:29 -0500 Subject: [PATCH] fix php 8.4 deprecation notice ``` PHP Deprecated: ShiftOneLabs\LaravelCascadeDeletes\CascadesDeletes::getInvalidCascadeDeletesRelations(): Implicitly marking parameter $relations as nullable is deprecated, the explicit nullable type must be used instead ``` --- src/CascadesDeletes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CascadesDeletes.php b/src/CascadesDeletes.php index 4555430..83b6eea 100644 --- a/src/CascadesDeletes.php +++ b/src/CascadesDeletes.php @@ -137,7 +137,7 @@ public function getCascadeDeletesRelations() * * @return array */ - public function getInvalidCascadeDeletesRelations(array $relations = null) + public function getInvalidCascadeDeletesRelations(?array $relations = null) { // This will get the array keys for any item in the array where the // value is null. If the value is null, that means that the name