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.48k stars 343 forks source link

add missing method tags for expectations #1116

Closed azatakmyradov closed 5 months ago

azatakmyradov commented 6 months ago

What:

Description:

This PR adds method tags to Expectation and OppositeExpectation classes. I understand this might be a code design choice and using IDEs like PHPStorm will not have these issues. However it helps code editors like neovim recognize methods from expect() function. (see in screenshot)

Screenshot without annotations

I understand this may seem like it makes cluttered but it really improves DX with autocompletion and without annoying errors. Screenshot autocompletions Screenshot from 2024-03-15 22-35-07