pestphp / pest

Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
https://pestphp.com
MIT License
9.06k stars 313 forks source link

[Bug]: Expectation mixin in marked as internal class #1141

Open fnzr opened 2 months ago

fnzr commented 2 months ago

What Happened

PHPStan provides a false(?) warning when using mixin expectation functions:

2024-04-22-17:30:53-screenshot

This is very similar to #1018, fixed in #1020 and is caused by https://github.com/pestphp/pest/blob/303f4c01137be66469e9f11d7f25910790a9c8c4/src/Mixins/Expectation.php#L31

How to Reproduce

Analyse the code with phpstan. I'm using phpactor under nvim, can provide configurations if necessary.

Sample Repository

No response

Pest Version

2.34

PHP Version

8.3

Operation System

Linux

Notes

No response