forked from phpstan/phpstan-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbug-14319.php
More file actions
39 lines (34 loc) · 747 Bytes
/
bug-14319.php
File metadata and controls
39 lines (34 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
namespace BenchBug14319;
function foo(string $a, int $b): array|object
{
return $a;
}
final class test
{
protected function edit(int|string|null $IdNum = null): void
{
$rows = foo("SELECT *", $IdNum);
if ($_POST['edycja'] === 'edycja' ) {
$raport = '';
if ($rows['rap_tr']) {
$raport .= 'T: '.$rows['rap_tr'].", \n";
}
if ($rows['rap_ks']) {
$raport .= 'K: '.$rows['rap_ks'].", \n";
}
if ($rows['rap_br']) {
$raport .= 'B: '.$rows['rap_br'].", \n";
}
if ($rows['rap_cz']) {
$raport .= 'C: '.$rows['rap_cz'].", \n";
}
if ($rows['rap_fil']) {
$raport .= 'Fil: '.$rows['rap_fil'].", \n";
}
if ($rows['rap_roz']) {
$raport .= 'Roz: '.$rows['rap_roz'].", \n";
}
}
}
}