Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
audunru committed Apr 7, 2024
1 parent 3c599a1 commit b8efa0e
Show file tree
Hide file tree
Showing 8 changed files with 722 additions and 598 deletions.
1,306 changes: 715 additions & 591 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Macros/JsonResponse/ToCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ToCsv
{
public function __invoke()
{
return function (string $filename, string $key = null): StreamedResponse {
return function (string $filename, ?string $key = null): StreamedResponse {
$data = $this->getData(true);
if (! is_null($key)) {
$data = Arr::get($data, $key);
Expand Down
2 changes: 1 addition & 1 deletion src/Macros/JsonResponse/ToXlsx.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ToXlsx
{
public function __invoke()
{
return function (string $filename, string $key = null): StreamedResponse {
return function (string $filename, ?string $key = null): StreamedResponse {
$data = $this->getData(true);
if (! is_null($key)) {
$data = Arr::get($data, $key);
Expand Down
2 changes: 1 addition & 1 deletion src/Macros/JsonResponse/ToXml.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ToXml
{
public function __invoke()
{
return function (string $filename, string $key = null): Response {
return function (string $filename, ?string $key = null): Response {
$data = $this->getData(true);
if (! is_null($key)) {
$data = Arr::get($data, $key);
Expand Down
2 changes: 1 addition & 1 deletion src/Macros/Response/Filename.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Filename
{
public function __invoke()
{
return function (string $filename, string $filenameStar = null): Response|StreamedResponse {
return function (string $filename, ?string $filenameStar = null): Response|StreamedResponse {
$this->headers->set('Content-Disposition', sprintf('attachment; filename="%s"; filename*=utf-8\'\'%s', $filename, urlencode($filenameStar ?? $filename)));

return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/ExportCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct(protected FilenameGeneratorContract $filenameGenerat
{
}

public function handle(Request $request, Closure $next, string $key = null)
public function handle(Request $request, Closure $next, ?string $key = null)
{
$response = $next($request);

Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/ExportXlsx.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct(protected FilenameGeneratorContract $filenameGenerat
{
}

public function handle(Request $request, Closure $next, string $key = null)
public function handle(Request $request, Closure $next, ?string $key = null)
{
$response = $next($request);

Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/ExportXml.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct(protected FilenameGeneratorContract $filenameGenerat
{
}

public function handle(Request $request, Closure $next, string $key = null)
public function handle(Request $request, Closure $next, ?string $key = null)
{
$response = $next($request);

Expand Down

0 comments on commit b8efa0e

Please sign in to comment.