From 12b35a99c35b7eb5943744bf4b5d9934dc349597 Mon Sep 17 00:00:00 2001 From: Christopher Pitt Date: Tue, 23 Oct 2018 06:33:45 +0200 Subject: [PATCH] Fix a bug running the tests at all would have picked up --- source/Renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Renderer.php b/source/Renderer.php index 3e31de5..fa81ec6 100644 --- a/source/Renderer.php +++ b/source/Renderer.php @@ -636,7 +636,7 @@ private function attributesFrom($props) $properKey = $this->renamedAttributes[$key]; } - $flippedAttributes = array_flip($this->renamedAttributes[$key]); + $flippedAttributes = array_flip($this->renamedAttributes); if (isset($flippedAttributes[$properKey])) { $key = $flippedAttributes[$properKey];