Skip to content

Commit a233f08

Browse files
committed
set typehint
1 parent 48f140e commit a233f08

File tree

1 file changed

+1
-1
lines changed
  • src/Instrumentation/Laravel/src/Hooks/Illuminate/Database/Eloquent

1 file changed

+1
-1
lines changed

src/Instrumentation/Laravel/src/Hooks/Illuminate/Database/Eloquent/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private function hookDestroy(): void
189189
hook(
190190
EloquentModel::class,
191191
'destroy',
192-
pre: function ($modelClassName, array $params, string $class, string $function, ?string $filename, ?int $lineno) {
192+
pre: function (string $modelClassName, array $params, string $class, string $function, ?string $filename, ?int $lineno) {
193193
// The class-string is passed to the $model argument, because \Illuminate\Database\Eloquent\Model::destroy is static method.
194194
// Therefore, create a class instance from a class-string, and then get the table name from the getTable function.
195195
$model = new $modelClassName();

0 commit comments

Comments
 (0)