diff --git a/lib/internal/Magento/Framework/App/Utility/Files.php b/lib/internal/Magento/Framework/App/Utility/Files.php index fd4ccf4bd1b40..ce8722ab8b5bb 100644 --- a/lib/internal/Magento/Framework/App/Utility/Files.php +++ b/lib/internal/Magento/Framework/App/Utility/Files.php @@ -1391,7 +1391,8 @@ private function classFileExistsCheckContent($fullPath, $namespace, $className) $fileContent = file_get_contents($fullPath); if (strpos($fileContent, 'namespace ' . $namespace) !== false && (strpos($fileContent, 'class ' . $className) !== false - || strpos($fileContent, 'interface ' . $className) !== false) + || strpos($fileContent, 'interface ' . $className) !== false + || strpos($fileContent, 'trait ' . $className) !== false) ) { return true; }