Skip to content

Commit 0ab738c

Browse files
committed
close #19
1 parent fee0590 commit 0ab738c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/Processors/ObjectProcessor.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ private function getProperties(
135135
$properties = [];
136136
do {
137137
foreach ($reflection->getProperties() as $property) {
138+
if ($property->isStatic()) {
139+
continue;
140+
}
138141
$isUnset = false;
139142

140143
try {

tests/src/BaseClass.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818

1919
abstract class BaseClass
2020
{
21+
public const CONSTANT = 'constant';
22+
23+
public static string $static = 'static';
24+
2125
public int $code = 101;
2226

2327
public object $public;

0 commit comments

Comments
 (0)