Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Commit c741a48

Browse files
author
Andrey Helldar
authored
Merge pull request #35 from TheDragonCode/3.x
Fixed hiding values
2 parents 01d05f9 + 70bcd9a commit c741a48

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Services/Compiler.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ protected function compile(array $items): string
119119

120120
protected function replace(string $key, $value, bool $secure)
121121
{
122-
return $this->isForceHiding($key) && $secure ? null : $this->value($key, $value);
122+
if ($this->isForceHiding($key) && $secure) {
123+
return null;
124+
}
125+
126+
return $secure ? $this->value($key, $value) : $value;
123127
}
124128

125129
protected function isForceHiding(string $key): bool

0 commit comments

Comments
 (0)