Skip to content

Commit

Permalink
fix setProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
jgniecki committed Jul 22, 2024
1 parent 9c75a1e commit e135066
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Properties.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ public function setProperty(string $name, $value): self
{
$property = preg_grep('/' . $name . '/', $this->properties);
$key = key($property);

if ($value === true) {
$value = "true";
} else {
$value = "false";
}

$this->properties[$key] = $name . "=" . $value;
return $this;
}
Expand Down

0 comments on commit e135066

Please sign in to comment.