Skip to content

Commit

Permalink
Merge pull request #52 from stof/better_types
Browse files Browse the repository at this point in the history
Add better types for the sprintf-like arguments
  • Loading branch information
stof authored Jun 2, 2023
2 parents 3b4ee03 + 8f1ba2b commit 9110bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/Deprecations/Deprecation.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Deprecation
* deprecation. It is additionally used to de-duplicate the trigger of the
* same deprecation during a request.
*
* @param mixed $args
* @param float|int|string $args
*/
public static function trigger(string $package, string $link, string $message, ...$args): void
{
Expand Down Expand Up @@ -124,7 +124,7 @@ public static function trigger(string $package, string $link, string $message, .
* deprecation tracking is enabled even during deduplication, because it
* needs to call {@link debug_backtrace()}
*
* @param mixed $args
* @param float|int|string $args
*/
public static function triggerIfCalledFromOutside(string $package, string $link, string $message, ...$args): void
{
Expand Down

0 comments on commit 9110bfe

Please sign in to comment.