diff options
author | n-peugnet <n.peugnet@free.fr> | 2020-04-24 16:36:12 +0200 |
---|---|---|
committer | Vincent Peugnet <33429034+vincent-peugnet@users.noreply.github.com> | 2020-04-25 17:44:38 +0200 |
commit | 385b3f4adf86606e03941171c136d8f2eb2b35c2 (patch) | |
tree | 2231cf04d67a5cae7284364ac5552a321b9a236e /app/class/Dbitem.php | |
parent | 03d425bdd9a639446ae72ce6556d753f2f162f83 (diff) | |
download | wcms-385b3f4adf86606e03941171c136d8f2eb2b35c2.tar.gz wcms-385b3f4adf86606e03941171c136d8f2eb2b35c2.zip |
fix: most of PHPStan errors
Diffstat (limited to 'app/class/Dbitem.php')
-rw-r--r-- | app/class/Dbitem.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/class/Dbitem.php b/app/class/Dbitem.php index 44dec2c..29f7a2c 100644 --- a/app/class/Dbitem.php +++ b/app/class/Dbitem.php @@ -11,7 +11,7 @@ abstract class Dbitem extends Item public function dry() { $array = []; - foreach ($this as $var => $value) { + foreach (get_object_vars($this) as $var => $value) { if ($value instanceof DateTime || $value instanceof DateTimeImmutable) { $array[$var] = $this->$var('string'); } else { |