mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Various fixes to remove warnings in PHP 8.0
This commit is contained in:
parent
9a0bf6d907
commit
49923844b2
36 changed files with 271 additions and 176 deletions
|
|
@ -63,7 +63,7 @@ class Security
|
|||
}
|
||||
elseif($varName0)
|
||||
{
|
||||
$var = $is_object ? $this->_targetVar->{$varName0} : $this->_targetVar[$varName0];
|
||||
$var = $is_object ? ($this->_targetVar->{$varName0} ?? null) : ($this->_targetVar[$varName0] ?? null);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -131,7 +131,7 @@ class Security
|
|||
|
||||
if(strlen($name0))
|
||||
{
|
||||
$target = $is_object ? $var->{$name0} : $var[$name0];
|
||||
$target = $is_object ? ($var->{$name0} ?? null) : ($var[$name0] ?? null);
|
||||
$target = $this->_encodeHTML($target, $name);
|
||||
|
||||
if($target === false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue