Skip to content

Commit aaa7c61

Browse files
committed
Fix file_get_content exception when installing symfony 4.3-dev
1 parent 7417aba commit aaa7c61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Configurator/AbstractConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ protected function updateData(string $file, string $data): bool
7878
$pieces = explode("\n", trim($data));
7979
$startMark = trim(reset($pieces));
8080
$endMark = trim(end($pieces));
81-
$contents = file_get_contents($file);
81+
$contents = @file_get_contents($file);
8282

8383
if (false === strpos($contents, $startMark) || false === strpos($contents, $endMark)) {
8484
return false;

0 commit comments

Comments
 (0)