From 459338ecfadb5083725a985e0e32f33809270940 Mon Sep 17 00:00:00 2001 From: Jacek Lange Date: Tue, 19 Feb 2019 16:20:11 +0100 Subject: [PATCH 1/2] Fix error parsing JSON with quotes in data --- src/Context.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Context.php b/src/Context.php index 2afd449..e1e0017 100644 --- a/src/Context.php +++ b/src/Context.php @@ -59,7 +59,7 @@ public function generate() { $properties = $this->getProperties(); - return $properties ? "" : ''; + return $properties ? "" : ''; } /** From 3623a7934d839f65d38a7a46e8c8e3a8721ebad9 Mon Sep 17 00:00:00 2001 From: Jacek Lange Date: Tue, 19 Feb 2019 16:20:11 +0100 Subject: [PATCH 2/2] Fix error parsing JSON with quotes in data --- tests/ContextTypes/ProductTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ContextTypes/ProductTest.php b/tests/ContextTypes/ProductTest.php index 553009b..d98f962 100644 --- a/tests/ContextTypes/ProductTest.php +++ b/tests/ContextTypes/ProductTest.php @@ -13,7 +13,7 @@ class ProductTest extends TestCase 'category' => 'Droppables / Anvils', 'model' => 'Acme Exec. Anvil', 'image' => 'http://www.example.com/anvil_executive.jpg', - 'description' => 'Sleeker than ACME\'s Classic Anvil, the Executive Anvil is perfect for the business traveler looking for something to drop from a height.', + 'description' => 'Sleeker than ACME\u0027s Classic Anvil, the Executive Anvil is perfect for the business traveler looking for something to drop from a height.', 'sku' => '925872', 'brand' => 'Acme Inc.', 'aggregateRating' => [