David Young

Results 13 comments of David Young

My real use-case is intersecting an interface and `MockObject` from PHPUnit in a unit test. In this case, my interface was `SessionHandlerInterface`. Here's a repro of that issue: https://psalm.dev/r/f544acf7cc

(it still breaks if you make `Foo` an interface in my above example)

The order of the type seems to matter. For example, [this works](https://psalm.dev/r/09f17deb82), but [this does not](https://psalm.dev/r/e9af3116a7).

Fwiw [PHPUnit returns an intersection type](https://github.com/sebastianbergmann/phpunit/blob/b32796b9c4c19bdd7b8080bc36bbf3182c7cb3f6/src/Framework/TestCase.php#L1322) when creating a mock

I'm not sure if this is a separate issue or not, but my [CI](https://github.com/aphiria/aphiria/runs/7570560788?check_suite_focus=true#step:7:12) is also failing on what I think might be another issue with an intersection type with...

> I'm not sure if this is a separate issue or not, but my [CI](https://github.com/aphiria/aphiria/runs/7570560788?check_suite_focus=true#step:7:12) is also failing on what I think might be another issue with an intersection type...

Do we have any rough idea of when this may be fixed in a future release? Thanks!

Now that PHP 8.2 has been released, any chance this can get merged so that we can close https://github.com/erusev/parsedown-extra/issues/173?

@erusev I've successfully gotten the CI tests to pass across PHP versions 7.1 - 8.4. Should be ready for review.

@erusev FYI this is ready for review