Skip to content

Commit

Permalink
Merge pull request #811 from japaveh/fix-proxy
Browse files Browse the repository at this point in the history
Add default value for $property in Proxy.php
  • Loading branch information
TomHAnderson authored Jul 25, 2023
2 parents caa9b18 + a08d85c commit bff9269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Form/Element/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Proxy implements ObjectManagerAwareInterface
/** @var mixed[] */
protected array $findMethod = [];

protected mixed $property;
protected mixed $property = null;

/** @var mixed[] */
protected array $optionAttributes = [];
Expand Down Expand Up @@ -450,7 +450,7 @@ protected function loadValueOptions(): void
$generatedLabel = $this->generateLabel($object);
if ($generatedLabel !== null) {
$label = $generatedLabel;
} elseif ($this->property) {
} elseif ($this->property !== null) {
$property = $this->property;
if (
($this->getIsMethod() === false || $this->getIsMethod() === null)
Expand Down

0 comments on commit bff9269

Please sign in to comment.