Skip to content

Commit df5e767

Browse files
committed
chore: strict types
1 parent 92a0111 commit df5e767

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/Exports/DataTablesCollectionExport.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,14 @@ abstract class DataTablesCollectionExport implements FromCollection, WithHeading
1212
{
1313
use Exportable;
1414

15-
/**
16-
* @var Collection|LazyCollection
17-
*/
18-
protected $collection;
19-
20-
/**
21-
* @param Collection|LazyCollection|null $collection
22-
*/
23-
public function __construct($collection = null)
15+
protected LazyCollection|Collection $collection;
16+
17+
public function __construct(Collection|LazyCollection $collection = null)
2418
{
2519
$this->collection = $collection ?? new Collection;
2620
}
2721

28-
public function collection(): \Illuminate\Support\Collection|\Illuminate\Support\LazyCollection
22+
public function collection(): Collection|LazyCollection
2923
{
3024
return $this->collection;
3125
}

0 commit comments

Comments
 (0)