Reading phpstan configuration #8379
-
Hello, is there a way to access phpstan's configuration from rector rule. I'd like to leverage
thanks for your answer |
Beta Was this translation helpful? Give feedback.
Answered by
samsonasik
Jan 1, 2024
Replies: 1 comment 1 reply
-
If it is part of phpstan service, you may need to pull from |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nikophil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If it is part of phpstan service, you may need to pull from
\PHPStan\DependencyInjection\Container
, see this as referencehttps://github.com/rectorphp/rector-src/blob/f4257afb3c05217b13513c4708228a6a976bab88/packages/NodeTypeResolver/DependencyInjection/PHPStanServicesFactory.php#L26