Loading src/Service/ComponentRenderer.php +4 −3 Original line number Diff line number Diff line Loading @@ -126,9 +126,10 @@ class ComponentRenderer { */ private function validateProps(array $props, Component $component): void { $validator = new Validator(); $schema = Validator::arrayToObjectRecursive( $component->getMetadata()->getSchemas()['props'] ); $prop_schema = $component->getMetadata()->getSchemas()['props']; // Add an exception for XDEBUG_TRIGGER, so we can debug more comfortably. $prop_schema['properties']['XDEBUG_TRIGGER'] = ['type' => 'string']; $schema = Validator::arrayToObjectRecursive($prop_schema); if (!is_object($schema)) { throw new InvalidComponentException('Unable to find schema for component props.'); } Loading Loading
src/Service/ComponentRenderer.php +4 −3 Original line number Diff line number Diff line Loading @@ -126,9 +126,10 @@ class ComponentRenderer { */ private function validateProps(array $props, Component $component): void { $validator = new Validator(); $schema = Validator::arrayToObjectRecursive( $component->getMetadata()->getSchemas()['props'] ); $prop_schema = $component->getMetadata()->getSchemas()['props']; // Add an exception for XDEBUG_TRIGGER, so we can debug more comfortably. $prop_schema['properties']['XDEBUG_TRIGGER'] = ['type' => 'string']; $schema = Validator::arrayToObjectRecursive($prop_schema); if (!is_object($schema)) { throw new InvalidComponentException('Unable to find schema for component props.'); } Loading