Skip to content

Commit

Permalink
Fixes the error message for param and property types (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-granados committed Apr 15, 2024
1 parent 86f3e7c commit e4dd214
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Rules/ParamTypeCoverageRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* @var string
*/
public const ERROR_MESSAGE = 'Out of %d possible param types, only %d - %.1f %% actually have it. Add more param types to get over %d %%';
public const ERROR_MESSAGE = 'Out of %d possible param types, only %d - %.1f %% actually have it. Add more param types to get over %s %%';

public function __construct(
private TypeCoverageFormatter $typeCoverageFormatter,
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/PropertyTypeCoverageRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* @var string
*/
public const ERROR_MESSAGE = 'Out of %d possible property types, only %d - %.1f %% actually have it. Add more property types to get over %d %%';
public const ERROR_MESSAGE = 'Out of %d possible property types, only %d - %.1f %% actually have it. Add more property types to get over %s %%';

public function __construct(
private TypeCoverageFormatter $typeCoverageFormatter,
Expand Down

0 comments on commit e4dd214

Please sign in to comment.