Skip to content

Commit 36eb5ea

Browse files
authored
Update Compiler.php
1 parent 5205b3e commit 36eb5ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Compiler/Compiler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ private function writeFileAtomic(string $fileName, string $content) : void
184184
$renamed = @rename($tmpFile, $fileName);
185185
if (!$renamed) {
186186
@unlink($tmpFile);
187+
187188
throw new InvalidArgumentException(sprintf('Error while renaming %s to %s', $tmpFile, $fileName));
188189
}
189190
}
@@ -311,6 +312,7 @@ public function compileValue(mixed $value) : string
311312
$subEntryName = 'subEntry' . (++$this->subEntryCounter);
312313
// Compile the sub-definition in another method
313314
$methodName = $this->compileDefinition($subEntryName, $value);
315+
314316
// The value is now a method call to that method (which returns the value)
315317
return "\$this->$methodName()";
316318
}

0 commit comments

Comments
 (0)