Skip to content

Commit

Permalink
better deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow committed Jan 26, 2024
1 parent c44ea65 commit 87f7909
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/Test/MakerTestDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ public function getPreRunCallbacks(): array

public function skipOnSymfony7(): self
{
trigger_deprecation('symfony/maker-bundle', 'v1.53.0', 'This method will be removed in a future version, use MakerTestDetails::skipTest() instead.');
@trigger_deprecation(
'symfony/maker-bundle',
'v1.53.0',
sprintf('%s() will be removed in a future version, use MakerTestDetails::skipTest() instead.', __METHOD__)
);

$this->skipOnSymfony7 = true;

Expand All @@ -198,8 +202,11 @@ public function skipOnSymfony7(): self

public function getSkipOnSymfony7(): bool
{
trigger_deprecation('symfony/maker-bundle', 'v1.53.0', 'This method will be removed in a future version, use MakerTestDetails::isTestSkipped() instead.');

@trigger_deprecation(
'symfony/maker-bundle',
'v1.53.0',
sprintf('%s() will be removed in a future version, use MakerTestDetails::isTestSkipped() instead.', __METHOD__)
);
return $this->skipOnSymfony7;
}

Expand Down

0 comments on commit 87f7909

Please sign in to comment.