Skip to content

Commit 34394e4

Browse files
committed
fix phpstan errors
1 parent 426d6fa commit 34394e4

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/Http/Livewire/CsvImporter.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ protected function importCsv()
132132

133133
protected function createNewImport()
134134
{
135-
/** @var \Illuminate\Foundation\Auth\User */
135+
/**
136+
* @var \Coderflex\LaravelCsv\Tests\Models\User */
136137
$user = auth()->user();
137138

138139
return $user->imports()->create([

src/Models/Import.php

+3-7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*
1111
* @property int $id
1212
* @property int|null $user_id
13+
* @property string $model
1314
* @property string $file_path
1415
* @property string $file_name
1516
* @property int $total_rows
@@ -30,14 +31,9 @@ class Import extends Model
3031
protected $table = 'csv_imports';
3132

3233
/**
33-
* The attributes that are mass assignable.
34+
* The attributes that aren't mass assignable.
3435
*
35-
* @var string[]
36+
* @var array<string>|bool
3637
*/
3738
protected $guarded = [];
38-
39-
public function importable()
40-
{
41-
return $this->morphTo();
42-
}
4339
}

0 commit comments

Comments
 (0)