Skip to content

Commit 79e9b3b

Browse files
martijnvankekemphil-davis
authored andcommitted
Check for string-type parameter VALUE
1 parent 7968406 commit 79e9b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Document.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public function createProperty(string $name, $value = null, ?array $parameters =
188188

189189
if (is_null($class)) {
190190
// If a VALUE parameter is supplied, we should use that.
191-
if (isset($parameters['VALUE'])) {
191+
if (isset($parameters['VALUE']) && is_string($parameters['VALUE'])) {
192192
$class = $this->getClassNameForPropertyValue($parameters['VALUE']);
193193
if (is_null($class)) {
194194
throw new InvalidDataException('Unsupported VALUE parameter for '.$name.' property. You supplied "'.$parameters['VALUE'].'"');

0 commit comments

Comments
 (0)