Skip to content

Commit a80d38d

Browse files
authored
Remove outdated php5 logic (#51)
1 parent 68311dd commit a80d38d

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

src/Codeception/Module/Symfony.php

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -189,25 +189,12 @@ public function _initialize()
189189
}
190190

191191
/**
192-
* Require Symfony's bootstrap.php.cache (only for PHP Version < 7)
193-
*
194-
* @throws ModuleRequireException
192+
* Require Symfony's bootstrap.php.cache
195193
*/
196194
private function initializeSymfonyCache()
197195
{
198196
$cache = Configuration::projectDir() . $this->config['var_path'] . DIRECTORY_SEPARATOR . 'bootstrap.php.cache';
199-
if (PHP_VERSION_ID < 70000 && !file_exists($cache)) {
200-
throw new ModuleRequireException(
201-
self::class,
202-
"Symfony bootstrap file not found in $cache\n \n" .
203-
"Please specify path to bootstrap file using `var_path` config option\n \n" .
204-
"If you are trying to load bootstrap from a Bundle provide path like:\n \n" .
205-
"modules:\n enabled:\n" .
206-
" - Symfony:\n" .
207-
" var_path: '../../app'\n" .
208-
" app_path: '../../app'"
209-
);
210-
}
197+
211198
if (file_exists($cache)) {
212199
require_once $cache;
213200
}

0 commit comments

Comments
 (0)