Skip to content

Commit

Permalink
lint + phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioGattolla committed Jan 28, 2025
1 parent f98fd34 commit e44615f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client/TelegraphResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function telegraphMessageId(): int|null
return (int) $this->json('result.message_id');
}

public function dump($key = null): static
public function dump(?string $key = null): static

Check failure on line 34 in src/Client/TelegraphResponse.php

View workflow job for this annotation

GitHub Actions / P8.3 - L11.* - prefer-stable - ubuntu-latest

Declaration of DefStudio\Telegraph\Client\TelegraphResponse::dump(?string $key = null): static must be compatible with Illuminate\Http\Client\Response::dump($key = null)

Check failure on line 34 in src/Client/TelegraphResponse.php

View workflow job for this annotation

GitHub Actions / P8.4 - L11.* - prefer-stable - ubuntu-latest

Declaration of DefStudio\Telegraph\Client\TelegraphResponse::dump(?string $key = null): static must be compatible with Illuminate\Http\Client\Response::dump($key = null)

Check failure on line 34 in src/Client/TelegraphResponse.php

View workflow job for this annotation

GitHub Actions / P8.2 - L11.* - prefer-stable - ubuntu-latest

Declaration of DefStudio\Telegraph\Client\TelegraphResponse::dump(?string $key = null): static must be compatible with Illuminate\Http\Client\Response::dump($key = null)

Check failure on line 34 in src/Client/TelegraphResponse.php

View workflow job for this annotation

GitHub Actions / phpstan

Parameter #1 $key (string|null) of method DefStudio\Telegraph\Client\TelegraphResponse::dump() is not contravariant with parameter #1 $key (mixed) of method Illuminate\Http\Client\Response::dump().
{
dump($this->json($key));

Expand All @@ -41,7 +41,7 @@ public function dump($key = null): static
/**
* @return never-returns
*/
public function dd($key = null): void
public function dd(?string $key = null): void

Check failure on line 44 in src/Client/TelegraphResponse.php

View workflow job for this annotation

GitHub Actions / phpstan

Parameter #1 $key (string|null) of method DefStudio\Telegraph\Client\TelegraphResponse::dd() is not contravariant with parameter #1 $key (mixed) of method Illuminate\Http\Client\Response::dd().
{
dd($this->json($key));
}
Expand Down

0 comments on commit e44615f

Please sign in to comment.