From db79e402a71d8fa3dded0ef21317b1ebe7b7c4cb Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Wed, 4 Dec 2019 23:13:45 +0100 Subject: [PATCH] Bump dependencies and fix --- build.xml | 2 +- composer.json | 2 +- src/PHPDraft/Model/HTTPRequest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.xml b/build.xml index 5b398963..aef28ef8 100644 --- a/build.xml +++ b/build.xml @@ -64,7 +64,7 @@ - + diff --git a/composer.json b/composer.json index 1de53ee4..3b3ebac2 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "php": "~7.1", "ql/uri-template": "~1.0", "vanilla/garden-cli": "~2.0", - "michelf/php-markdown": "~1.8", + "michelf/php-markdown": "~1.9", "lukasoppermann/http-status": "~2.0", "ext-json": "*", "ext-curl": "*" diff --git a/src/PHPDraft/Model/HTTPRequest.php b/src/PHPDraft/Model/HTTPRequest.php index 4712025e..7d65e150 100644 --- a/src/PHPDraft/Model/HTTPRequest.php +++ b/src/PHPDraft/Model/HTTPRequest.php @@ -99,7 +99,7 @@ public function __construct(Transition &$parent) public function parse(stdClass $object): self { $this->method = $object->attributes->method->content ?? $object->attributes->method; - $this->title = isset($object->meta->title) ? $object->meta->title : NULL; + $this->title = $object->meta->title->content ?? $object->meta->title ?? NULL; if (!empty($object->content)) { foreach ($object->content as $value) {