Skip to content

Commit 3f1cddd

Browse files
Deprecation notice on passing null to str_replace
Passing null to a later on str_replace $subject generates a deprecation notice. Str::studly does not accept null as an argument.
1 parent aff3509 commit 3f1cddd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/app/Http/Controllers/CrudController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ protected function setupDefaults()
9696
protected function setupConfigurationForCurrentOperation()
9797
{
9898
$operationName = $this->crud->getCurrentOperation();
99-
100-
$setupClassName = 'setup'.Str::studly($operationName).'Operation';
99+
$setupClassName = 'setup'.Str::studly($operationName ?? '').'Operation';
101100

102101
/*
103102
* FIRST, run all Operation Closures for this operation.

0 commit comments

Comments
 (0)