Skip to content
loading...

re: Best Practice - Check if property exist and assign VIEW POST

TOP OF THREAD FULL DISCUSSION
re: It's a PHP 7 feature, it's called "return type declaration": basically you declare that the function will always return something having the declar...

This is great, guess most of the time I use PHP in a too "simple" way and should get more familiar with such details as it really helps to improve and ease the code :)

It's basically like in C++, or similar languages, when you define a function with a specific return type like

static QualityIssue fromArray(vector<type> &source){}

Thanks for the explanation, I struggled to find a good search query for this question with only the code.

code of conduct - report abuse