Skip to content

Commit

Permalink
Merge pull request #685 from varemel/main
Browse files Browse the repository at this point in the history
Fix error in DefStudio\Telegraph\Client\TelegraphResponse dump() and dd() methods declaration
  • Loading branch information
fabio-ivona authored Jan 26, 2025
2 parents 44e355c + 14cbda6 commit 01fb420
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Client/TelegraphResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ public function telegraphMessageId(): int|null
return (int) $this->json('result.message_id');
}

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

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

View workflow job for this annotation

GitHub Actions / phpstan

Method DefStudio\Telegraph\Client\TelegraphResponse::dump() has parameter $key with no type specified.

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

View workflow job for this annotation

GitHub Actions / phpstan

Method DefStudio\Telegraph\Client\TelegraphResponse::dump() has parameter $key with no type specified.
{
dump($this->json());
dump($this->json($key));

return $this;
}

/**
* @return never-returns
*/
public function dd(): void
public function dd($key = null): void

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

View workflow job for this annotation

GitHub Actions / phpstan

Method DefStudio\Telegraph\Client\TelegraphResponse::dd() has parameter $key with no type specified.

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

View workflow job for this annotation

GitHub Actions / phpstan

Method DefStudio\Telegraph\Client\TelegraphResponse::dd() has parameter $key with no type specified.
{
dd($this->json());
dd($this->json($key));
}
}

0 comments on commit 01fb420

Please sign in to comment.