3 ms·
I wrote this when I had just woke up as I was excited, so I had to get a question in. I think what I meant was passing functions into other functions. I do thi
by gravypod 11y ago
I wrote this when I had just woke up as I was excited, so I had to get a question in. I think what I meant was passing functions into other functions.
I do this for things like:
$user_requirements = [filter1, filter2];
foreach ($user_requirements as $test) {
if (!$test($some_data)) {
return false;
}
return true;
}
Is there any way to tell the analyzer to make sure that afunction of n arguments is passed in?