1 | <?php |
||||
2 | |||||
3 | namespace Anax\View; |
||||
4 | |||||
5 | /** |
||||
6 | * Render content within an article. |
||||
7 | */ |
||||
8 | |||||
9 | ?> |
||||
10 | <head> |
||||
11 | <meta charset="utf-8"> |
||||
12 | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
||||
13 | <title>Vädret</title> |
||||
14 | </head> |
||||
15 | |||||
16 | <h1>Vädret - misslyckades</h1> |
||||
17 | <div> |
||||
18 | <p> |
||||
19 | <?php |
||||
20 | echo $data["message"]; |
||||
21 | ?> |
||||
22 | </p> |
||||
23 | </div> |
||||
24 | |||||
25 | <!-- |
||||
26 | <pre> |
||||
27 | <?= var_dump($data); ?> |
||||
0 ignored issues
–
show
Are you sure
var_dump($data) 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
![]() |
|||||
28 | <?= 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
![]() |
|||||
29 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.