Implement @phpstan-allow-private-mutation#1610
Implement @phpstan-allow-private-mutation#1610ondrejmirtes merged 1 commit intophpstan:1.8.xfrom zonuexe:feature/psalm-readonly-allow-private-mutation
Conversation
|
|
src/PhpDoc/ResolvedPhpDocBlock.php
Outdated
There was a problem hiding this comment.
Error: Property PHPStan\PhpDoc\ResolvedPhpDocBlock::$phpDocNode (PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode) in isset() is not nullable.
Error: Property PHPStan\PhpDoc\ResolvedPhpDocBlock::$phpDocNodeResolver (PHPStan\PhpDoc\PhpDocNodeResolver) in isset() is not nullable.
------ ------------------------------------------------------------------
Line src/PhpDoc/ResolvedPhpDocBlock.php
------ ------------------------------------------------------------------
225 Property PHPStan\PhpDoc\ResolvedPhpDocBlock::$phpDocNode
(PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode) in isset() is not
nullable.
[24](https://github.com/phpstan/phpstan-src/actions/runs/3044344145/jobs/4904629542#step:11:25)3 Property PHPStan\PhpDoc\ResolvedPhpDocBlock::$phpDocNodeResolver
(PHPStan\PhpDoc\PhpDocNodeResolver) in isset() is not nullable.
------ ------------------------------------------------------------------
https://github.com/phpstan/phpstan-src/actions/runs/3044344145/jobs/4904629542#step:11:9
|
@ondrejmirtes Could you please review this PR? |
src/PhpDoc/ResolvedPhpDocBlock.php
Outdated
There was a problem hiding this comment.
Hi, you¨re adding a simple boolean value which there are already many present. These changes to phpDocNode and phpDocNodeResolver are not required to make this work, and cause these build failures.
If the PR doesn't work without these changes, please observe how different boolean values are handled here, it shouldn't be hard to make them work.
|
Sorry, I accidentally submitted a re-review. Ignore it for once. |
|
I've updated the PR with the correct fix. |
|
Thank you. |
resolve phpstan/phpstan#7778, refs #1609