Skip to content

Commit

Permalink
Merge branch 'master' into closure
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Apr 8, 2019
2 parents e8a26cd + 193bdfd commit 70c0b2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Internal/ObjectExporter/AnyObjectExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public function export($object, \ReflectionObject $reflectionObject, array $path
$unsetNonPublicProperties = [];

foreach ($current->getProperties() as $property) {
if ($property->isStatic()) {
continue;
}

if ($isParentClass && ! $property->isPrivate()) {
// property already handled in the child class.
continue;
Expand Down
2 changes: 2 additions & 0 deletions tests/Classes/NoProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@
*/
class NoProperties
{
// Static property should not be returned in the output
public static $staticProp = [];
}

0 comments on commit 70c0b2a

Please sign in to comment.