Skip to content

Commit 4d848c3

Browse files
committed
php 7.1 compat
Signed-off-by: RJ Garcia <[email protected]>
1 parent 36d4157 commit 4d848c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/PhpIncPlugin.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private function writeVerbose(IOInterface $io, string $line) {
107107
/** @return mixed[] */
108108
private function createDefaultConfig(): array {
109109
// this is pulled directly from the README config
110-
return json_decode(<<<JSON
110+
$content = <<<JSON
111111
{
112112
"src-path": "src",
113113
"test-path": "tests",
@@ -137,6 +137,7 @@ private function createDefaultConfig(): array {
137137
]
138138
}
139139
}
140-
JSON, true);
140+
JSON;
141+
return json_decode($content, true);
141142
}
142143
}

0 commit comments

Comments
 (0)