DEVSENSE / phptools-docs

PHP Tools public content
Apache License 2.0
84 stars 10 forks source link

Prefer keywords instead of PHP functions while declaring a function #670

Closed shyim closed 1 month ago

shyim commented 2 months ago

The language constructs should be prefered at some constructs instead of functions like here:

image

I want to create a new method, it should prefer static instead of stat

image

same here. I auto completed a lot already to function_exists by misstake

jakubmisek commented 2 months ago

good point!

shyim commented 2 months ago
image

also with return type of functions :) fyi 😅

jakubmisek commented 1 month ago

Thank you for noticing that!

The completion after keywords and after : as a function type hint has been implemented;

The feature will be available in the next update (pre-release and release)