Skip to content

Commit

Permalink
Merge pull request #1247 from kukulich/mutants
Browse files Browse the repository at this point in the history
Interface can have only public properties
  • Loading branch information
kukulich committed Sep 28, 2022
2 parents ba1ff38 + 23c358c commit 02d0233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Reflection/ReflectionClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ public function getProperties(int $filter = 0): array
[],
$this->getParentClass()?->getProperties(ReflectionPropertyAdapter::IS_PUBLIC | ReflectionPropertyAdapter::IS_PROTECTED) ?? [],
...array_map(
static fn (ReflectionClass $ancestor): array => $ancestor->getProperties(ReflectionPropertyAdapter::IS_PUBLIC | ReflectionPropertyAdapter::IS_PROTECTED),
static fn (ReflectionClass $ancestor): array => $ancestor->getProperties(),
array_values($this->getInterfaces()),
),
...array_map(
Expand Down

0 comments on commit 02d0233

Please sign in to comment.