Skip to content

Commit c5e0a03

Browse files
committed
Merge remote-tracking branch 'perf-ce/MCP-797' into MCP-792
2 parents 8adb0e6 + 4680907 commit c5e0a03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup/src/Magento/Setup/Module/Di/Code/Scanner/PhpScanner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private function findMissingFactories($file, $classReflection, $methodName, $ent
6262
$parameters = $constructor->getParameters();
6363
/** @var $parameter \ReflectionParameter */
6464
foreach ($parameters as $parameter) {
65-
preg_match('/\[\s\<\w+?>\s([\w\\\\]+)/s', $parameter->__toString(), $matches);
65+
preg_match('/\[\s\<\w+?>\s\??([\w\\\\]+)/s', $parameter->__toString(), $matches);
6666
if (isset($matches[1]) && substr($matches[1], -strlen($entityType)) == $entityType) {
6767
$missingClassName = $matches[1];
6868
if ($this->shouldGenerateClass($missingClassName, $entityType, $file)) {

0 commit comments

Comments
 (0)