The return type could not be reliably inferred; please add a @return annotation.
Our type inference engine in quite powerful, but sometimes the code does not
provide enough clues to go by. In these cases we request you to add a @return
annotation as described here.
Loading history...
17
{
18
return $model;
19
}
20
21
36
public function getModelTable($instance)
22
{
23
36
$class = new \ReflectionClass($instance);
24
36
$nameParts = explode("\\", $class->getName());
25
36
return Text::deCamelize(end($nameParts));
26
}
27
28
4
public function getJunctionClassName($classA, $classB)
29
{
30
4
$classA = $this->getClassFileDetails($classA);
31
4
$classB = $this->getClassFileDetails($classB);
32
4
if ($classA['namespace'] != $classB['namespace']) {
33
throw new NibiiException(
34
"Cannot automatically join two classes of different "
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.