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

mod/groups/views/default/river/group/create.php (1 issue)

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

Bug Minor
1
<?php
2
/**
3
 * Group creation river view.
4
 */
5
6
$item = elgg_extract('item', $vars);
7
if (!$item instanceof ElggRiverItem) {
8
	return;
9
}
10
11
$vars['message'] = elgg_get_excerpt($item->getObjectEntity()->description);
0 ignored issues
show
It seems like $item->getObjectEntity()->description can also be of type array; however, parameter $text of elgg_get_excerpt() does only seem to accept string, maybe add an additional type check? ( Ignorable by Annotation )

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

11
$vars['message'] = elgg_get_excerpt(/** @scrutinizer ignore-type */ $item->getObjectEntity()->description);
Loading history...
12
13
echo elgg_view('river/elements/layout', $vars);
14