From ce0e24ed33e04aec8bcbf2d076b10202742f33a8 Mon Sep 17 00:00:00 2001 From: Vyacheslav Moskalenko Date: Fri, 21 Aug 2015 11:39:45 +0600 Subject: [PATCH] Fix Test Operation issues with type comparison, https://github.com/raphaelstolt/php-jsonpatch/issues/8, missed space --- src/Rs/Json/Patch/Operations/Test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rs/Json/Patch/Operations/Test.php b/src/Rs/Json/Patch/Operations/Test.php index c66d27e..a2188d7 100755 --- a/src/Rs/Json/Patch/Operations/Test.php +++ b/src/Rs/Json/Patch/Operations/Test.php @@ -49,7 +49,7 @@ public function perform($targetDocument) $get = null; } - $value = is_object($this->getValue())? (array) $this->getValue() : $this->getValue(); + $value = is_object($this->getValue()) ? (array) $this->getValue() : $this->getValue(); if (is_array($value) && is_array($get)) { asort($get);