File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -280,12 +280,12 @@ public function getProjectDir()
280
280
if (null === $ this ->projectDir ) {
281
281
$ r = new \ReflectionObject ($ this );
282
282
283
- if (!file_exists ($ dir = $ r ->getFileName ())) {
283
+ if (!is_file ($ dir = $ r ->getFileName ())) {
284
284
throw new \LogicException (sprintf ('Cannot auto-detect project dir for kernel of class "%s". ' , $ r ->name ));
285
285
}
286
286
287
287
$ dir = $ rootDir = \dirname ($ dir );
288
- while (!file_exists ($ dir .'/composer.json ' )) {
288
+ while (!is_file ($ dir .'/composer.json ' )) {
289
289
if ($ dir === \dirname ($ dir )) {
290
290
return $ this ->projectDir = $ rootDir ;
291
291
}
@@ -432,7 +432,7 @@ protected function initializeContainer()
432
432
$ errorLevel = error_reporting (E_ALL ^ E_WARNING );
433
433
434
434
try {
435
- if (file_exists ($ cachePath ) && \is_object ($ this ->container = include $ cachePath )
435
+ if (is_file ($ cachePath ) && \is_object ($ this ->container = include $ cachePath )
436
436
&& (!$ this ->debug || (self ::$ freshCache [$ cachePath ] ?? $ cache ->isFresh ()))
437
437
) {
438
438
self ::$ freshCache [$ cachePath ] = true ;
You can’t perform that action at this time.
0 commit comments