Skip to content

Commit

Permalink
fix php 8.4 deprecation notice
Browse files Browse the repository at this point in the history
```
PHP Deprecated:  ShiftOneLabs\LaravelCascadeDeletes\CascadesDeletes::getInvalidCascadeDeletesRelations(): Implicitly marking parameter $relations as nullable is deprecated, the explicit nullable type must be used instead
```
  • Loading branch information
tomschlick authored and patrickcarlohickman committed Dec 13, 2024
1 parent bbd2175 commit 7d30b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CascadesDeletes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d30b20

Please sign in to comment.