FAQ

On 5/17/2016 7:47 PM, Rasmus Schultz wrote:
You're not annotating the function - this is just a round-about way of
annotating the argument.

You would do that directly, like this:

function foo(
<< ValidateRange(0, 100) >>
int $percentage
) { ... }
What is this good for?
When is /ValidateRange/ being evaluated?
On every call? How?

I really do not get it, sorry.

--
Richard "Fleshgrinder" Fussenegger

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 24 of 25 | next ›
Discussion Overview
groupphp-internals @
categoriesphp
postedMay 13, '16 at 12:11p
activeMay 17, '16 at 6:39p
posts25
users10
websitephp.net

People

Translate

site design / logo © 2018 Grokbase