Passed
Push — master ( c0a3a7...3b84a4 )
by Jeroen
58:51
created

views/json/resources/livesearch/friends.php (1 issue)

Checks if the types of the passed arguments in a function/method call are compatible.

Bug Minor
1
<?php
2
3
set_input('friends_only', true);
0 ignored issues
show
true of type true is incompatible with the type string|string[] expected by parameter $value of set_input(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

3
set_input('friends_only', /** @scrutinizer ignore-type */ true);
Loading history...
4
5
echo elgg_view('resources/livesearch/users', $vars);