Several pages read a variable that is never defined on that page (copy/paste from another page), so PHPStan level 10 flags 'Variable $x might not be defined' and PHP 8 emits an undefined-variable warning with a null value: - reception/card.php: $reception -> $object (matches the 10 other builddoc blocks in the same file; otherwise the output PDF language is wrong) - loan/payment/card.php: $object->id -> $id (page uses $id; matches the adjacent enabled-button line) - opensurvey/card.php: ConfirmRemovalOfPoll uses $id -> $numsondage (otherwise the confirmation message placeholder is empty) - opensurvey/results.php: guard $expiredate with !empty() (never defined on this page; still falls back to $object->date_fin) - projet/card.php: guard $morecss with !empty() (never defined here) No behaviour change beyond removing the undefined-variable reads. Co-authored-by: Laurent Destailleur <eldy@destailleur.fr> |
||
|---|---|---|
| .. | ||
| class | ||
| stats | ||
| tpl | ||
| card.php | ||
| contact.php | ||
| dispatch.php | ||
| document.php | ||
| index.php | ||
| list.php | ||
| note.php | ||