Skip to content

Commit 66e638d

Browse files
committed
Keep prose lines of the fixture from parsing as PHPDoc tags
1 parent 62966cc commit 66e638d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎tests/PHPStan/Rules/Pure/data/pure-unless-impure-override.php‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ final class ImpureReplacer implements Replacer
2323
{
2424

2525
/**
26-
* @phpstan-impure on the method replaces the inherited
27-
* @pure-unless-parameter-passed, so the body is not checked for purity.
26+
* The method's own impurity tag replaces the inherited conditional
27+
* purity, so the body is not checked for purity.
2828
* MethodSignatureRule reports the override instead.
2929
*
3030
* @phpstan-impure
@@ -94,8 +94,8 @@ final class PureReplacer implements Replacer
9494
{
9595

9696
/**
97-
* @phpstan-pure on the method replaces the inherited
98-
* @pure-unless-parameter-passed, so writing to $count is not exempt.
97+
* The method's own purity tag replaces the inherited conditional
98+
* purity, so writing to $count is not exempt.
9999
*
100100
* @phpstan-pure
101101
*/
@@ -105,8 +105,8 @@ public function replace(string $subject, int &$count = 0): string
105105
}
106106

107107
/**
108-
* @phpstan-pure on the method replaces the inherited
109-
* @pure-unless-callable-is-impure, so invoking $cb is not exempt.
108+
* The method's own purity tag replaces the inherited conditional
109+
* purity, so invoking $cb is not exempt.
110110
*
111111
* @phpstan-pure
112112
*/

0 commit comments

Comments
 (0)