Test Failed
Branch trunk (412648)
by SuperNova.WS
03:40
created
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
/**
4
 * quest.php
5
 *
6
 * @v1 (c) copyright 2011 by Gorlum for http://supernova.ws
7
 *
8
 */
9
10
define('INSIDE'  , true);
11
define('INSTALL' , false);
12
13
require('common.' . substr(strrchr(__FILE__, '.'), 1));
14
15
lng_include('quest');
16
$template = gettemplate('quest', true);
0 ignored issues
show
true is of type boolean, but the function expects a object<template>|null.

It seems like the type of the argument is not accepted by the function/method which you are calling.

In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.

We suggest to add an explicit type cast like in the following example:

function acceptsInteger($int) { }

$x = '123'; // string "123"

// Instead of
acceptsInteger($x);

// we recommend to use
acceptsInteger((integer) $x);
Loading history...
17
18
qst_render_page();
19
20
display($template, $lang['qst_quests']);
21