1 | <?php |
||||
2 | |||||
3 | namespace Anax\View; |
||||
4 | |||||
5 | /** |
||||
6 | * Render content within an article. |
||||
7 | */ |
||||
8 | |||||
9 | // Show incoming variables and view helper functions |
||||
10 | //echo showEnvironment(get_defined_vars(), get_defined_functions()); |
||||
11 | |||||
12 | |||||
13 | ?><div class="left"> |
||||
14 | <hr> |
||||
15 | <pre> |
||||
16 | SESSION |
||||
17 | <?= var_dump($_SESSION) ?> |
||||
0 ignored issues
–
show
Bug
introduced
by
![]() Are you sure the usage of
var_dump($_SESSION) is correct as it seems to always return null .
This check looks for function or method calls that always return null and whose return value is used. class A
{
function getObject()
{
return null;
}
}
$a = new A();
if ($a->getObject()) {
The method The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes. ![]() |
|||||
18 | POST |
||||
19 | <?= var_dump($_POST) ?> |
||||
0 ignored issues
–
show
Are you sure the usage of
var_dump($_POST) is correct as it seems to always return null .
This check looks for function or method calls that always return null and whose return value is used. class A
{
function getObject()
{
return null;
}
}
$a = new A();
if ($a->getObject()) {
The method The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes. ![]() Are you sure
var_dump($_POST) of type void can be used in echo ?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
20 | GET |
||||
21 | <?= var_dump($_GET) ?> |
||||
0 ignored issues
–
show
Are you sure
var_dump($_GET) of type void can be used in echo ?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() Are you sure the usage of
var_dump($_GET) is correct as it seems to always return null .
This check looks for function or method calls that always return null and whose return value is used. class A
{
function getObject()
{
return null;
}
}
$a = new A();
if ($a->getObject()) {
The method The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes. ![]() |
|||||
22 | </pre> |
||||
23 | <hr> |
||||
24 | </div> |
||||
25 |