Compare commits

...

1 Commits

Author SHA1 Message Date
Danyi Dávid
25dd079a45 * Fixing DoctrineMezzioModule\Hydrator\Filter\PropertyName::filter declaration 2021-04-28 20:15:17 +02:00
2 changed files with 268 additions and 233 deletions

499
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -60,7 +60,7 @@ class PropertyName implements FilterInterface
: [$properties]; : [$properties];
} }
public function filter(string $property): bool public function filter(string $property, ?object $instance = null): bool
{ {
return in_array($property, $this->properties) return in_array($property, $this->properties)
? ! $this->exclude ? ! $this->exclude