Minor Changes for Phpstan 1.6.3 (#2797)

One doc block change, one minor code change.
This commit is contained in:
oleibman 2022-05-01 08:33:38 -07:00 committed by GitHub
parent 58cb191abc
commit 8fc8470f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -26,10 +26,11 @@ class Properties
$this->setCoreProperties($docProps, $officePropertiesDC);
}
$officePropertyMeta = [];
$officePropertyMeta = null;
if (isset($namespacesMeta['dc'])) {
$officePropertyMeta = $officePropertyData->children($namespacesMeta['meta']);
}
$officePropertyMeta = $officePropertyMeta ?? [];
foreach ($officePropertyMeta as $propertyName => $propertyValue) {
$this->setMetaProperties($namespacesMeta, $propertyValue, $propertyName, $docProps);
}

View File

@ -99,7 +99,7 @@ class Properties
}
/**
* @param array|false $array
* @param null|array|false $array
* @param mixed $key
*/
private static function getArrayItem($array, $key = 0): ?SimpleXMLElement