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

Commit fa5c79c

Browse files
author
fd6130
committed
patch the DefaultConfiguration
1 parent f3ffcdd commit fa5c79c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Configuration/DefaultConfiguration.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,10 @@ protected function getReservedServerProperties(): array
373373
return [Property::bin_dir, Property::config_dir, Property::console_bin, Property::cache_dir, Property::deploy_dir, Property::log_dir, Property::src_dir, Property::templates_dir, Property::web_dir];
374374
}
375375

376-
private function setDefaultConfiguration(int $symfonyMajorVersion): self
376+
/**
377+
* @throws \InvalidArgumentException When provide with unsupported Symfony version
378+
*/
379+
private function setDefaultConfiguration(int $symfonyMajorVersion): void
377380
{
378381
if(self::SYMFONY_2 > $symfonyMajorVersion || self::SYMFONY_5 < $symfonyMajorVersion)
379382
{
@@ -401,8 +404,6 @@ private function setDefaultConfiguration(int $symfonyMajorVersion): self
401404
$this->sharedDirs = ['var/log'];
402405
$this->writableDirs = ['var/cache/', 'var/log/'];
403406
}
404-
405-
return $this;
406407
}
407408

408409
/**

0 commit comments

Comments
 (0)