Minor Changes for Phpstan 1.6.3 (#2797)
One doc block change, one minor code change.
This commit is contained in:
parent
58cb191abc
commit
8fc8470f81
|
|
@ -26,10 +26,11 @@ class Properties
|
||||||
$this->setCoreProperties($docProps, $officePropertiesDC);
|
$this->setCoreProperties($docProps, $officePropertiesDC);
|
||||||
}
|
}
|
||||||
|
|
||||||
$officePropertyMeta = [];
|
$officePropertyMeta = null;
|
||||||
if (isset($namespacesMeta['dc'])) {
|
if (isset($namespacesMeta['dc'])) {
|
||||||
$officePropertyMeta = $officePropertyData->children($namespacesMeta['meta']);
|
$officePropertyMeta = $officePropertyData->children($namespacesMeta['meta']);
|
||||||
}
|
}
|
||||||
|
$officePropertyMeta = $officePropertyMeta ?? [];
|
||||||
foreach ($officePropertyMeta as $propertyName => $propertyValue) {
|
foreach ($officePropertyMeta as $propertyName => $propertyValue) {
|
||||||
$this->setMetaProperties($namespacesMeta, $propertyValue, $propertyName, $docProps);
|
$this->setMetaProperties($namespacesMeta, $propertyValue, $propertyName, $docProps);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ class Properties
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array|false $array
|
* @param null|array|false $array
|
||||||
* @param mixed $key
|
* @param mixed $key
|
||||||
*/
|
*/
|
||||||
private static function getArrayItem($array, $key = 0): ?SimpleXMLElement
|
private static function getArrayItem($array, $key = 0): ?SimpleXMLElement
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue