orklah

Results 254 comments of orklah

Well actually, I have a much better grasp of Psalm's internal now, but I have a lot less time than before 😄 This is probably not the absolute best way...

It should be even simpler than what I said above. If we plug in the AfterAnalysisInterface hook, we get a $codebase param on which we can do: `$codebase->functions->getAllStubbedFunctions()[$function_id]` with $function_id...

ouch, this breaks badly. I'll look into it. I'm not sure what will happen by intersecting a mock object and an interface though... Either the mock object already implement the...

Thanks for feedback :) So far, I found out that the issue happens because of Psalm didn't manage to scan SessionHandlerInterface before it tries to create the intersectionType (for that,...

That's highly possible, but I'm confused by the fact it works when you flip the intersection around. If I solve the mystery here and the answer is not right, I'll...

It's not possible to make conditional assertions though, so it would need to be a special handling. If someone want to take a shot, it would probably need something here:...

Are you using ResourceBundle somewhere in your code? Could you check if it's properly cased or not if you do? Could you run with --debug-by-line and copy/paste the few lines...

This PR: https://github.com/vimeo/psalm/pull/8217/files removed ResourceBundle from the list of types accepted in count starting from PHP8. It seems clearly related but I have no idea why Psalm would behave like...

Could you push a PR that reverts that change: https://github.com/vimeo/psalm/pull/8217/files#diff-b8eaee1f550652657daf0a771be5e785bdb01e91acd004b4bbb4c41def706713R1546 and add a test? I'm not sure why it would crash like that but it's not needed for anything, it...