Skip to content

Commit

Permalink
Resolve pipeline instance instead of using facade
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbrouwers committed Jan 16, 2024
1 parent c0471aa commit 27afa36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cell.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Maatwebsite\Excel;

use Illuminate\Support\Facades\Pipeline;
use Illuminate\Pipeline\Pipeline;
use PhpOffice\PhpSpreadsheet\Calculation\Exception;
use PhpOffice\PhpSpreadsheet\Cell\Cell as SpreadsheetCell;
use PhpOffice\PhpSpreadsheet\RichText\RichText;
Expand Down Expand Up @@ -78,6 +78,6 @@ public function getValue($nullValue = null, $calculateFormulas = false, $formatD
}
}

return Pipeline::send($value)->through(config('excel.imports.cells.middleware', []))->thenReturn();
return resolve(Pipeline::class)->through(config('excel.imports.cells.middleware', []))->thenReturn();
}
}

0 comments on commit 27afa36

Please sign in to comment.