Skip to content

Commit 2a850d8

Browse files
Md. Touhidur RahmanMd. Touhidur Rahman
Md. Touhidur Rahman
authored and
Md. Touhidur Rahman
committed
added support to handle the boolean type value for replacer
1 parent ffece4f commit 2a850d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/StubFactory.php

+5
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ protected function buildUseableContentFromStubContent(array $replacers) {
100100
continue;
101101
}
102102

103+
if ( is_bool($value) ) {
104+
105+
$value = $value ? 'true' : 'false';
106+
}
107+
103108
$this->replaceInStub('{{'.$key.'}}', $value);
104109
}
105110

0 commit comments

Comments
 (0)