Skip to content

Commit

Permalink
fix "Can't use method return value in write context"
Browse files Browse the repository at this point in the history
  • Loading branch information
bkdotcom committed Jan 11, 2025
1 parent f5bbf6f commit be28930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Debug/Dump/Html/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ protected function dumpFloat($val, $abs = null)
*/
protected function dumpIdentifier(Abstraction $abs)
{
if (isset($abs['backedValue']) && empty($this->optionGet('attribs.title'))) {
if (isset($abs['backedValue']) && \in_array($this->optionGet('attribs.title'), [null, ''], true)) {
$valueAsString = $this->debug->getDump('text')->valDumper->dump($abs['backedValue']);
$this->optionSet('attribs.title', 'value: ' . $valueAsString);
}
Expand Down

0 comments on commit be28930

Please sign in to comment.