Skip to content

Commit 8635ba4

Browse files
author
Igor Melnikov
committed
MAGETWO-67871: Requesting autogenerated classes that are not in constructor cause fatal errors in production mode
- refactor
1 parent 421a75b commit 8635ba4

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/App/Utility

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/App/Utility/Files.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,7 @@ private function getSetupPhpFiles($flags = null)
16191619
{
16201620
$files = [];
16211621
$setupAppPath = BP . '/setup';
1622-
if (file_exists($setupAppPath) && $flags & self::INCLUDE_SETUP) {
1622+
if ($flags & self::INCLUDE_SETUP && file_exists($setupAppPath)) {
16231623
$regexIterator = $this->regexIteratorFactory->create(
16241624
$setupAppPath,
16251625
'/.*php$/'

0 commit comments

Comments
 (0)