Replies: 1 comment 13 replies
-
Hello, code analysis (type inference, finding out information about code) and rules that act on these data are strictly separated. PHPStan does only a single pass through the analysis. There's no way for collectors to influence the type inference, it'd require inverted dependency direction, and multiple passes of the analyser. If you show me the actual analysed code, and describe the problem you're trying to solve, I might help you another way. |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to write a DynamicMethodThrowTypeExtension to enhance exceptions system from a Command / Query bus.
I wrote a Collector that search for all classes that are handler, and collect the
tuple<Command, Handler>
.The question is: How to use the Collector in the
BusDynamicMethodThrowTypeExtension
?I shared the code below.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions