From 377aa2aa74855748bb34694003a2edfdf1601a38 Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Thu, 8 Jun 2017 20:31:34 +0200 Subject: [PATCH] Drop short array syntax for PHP < 5.4 --- lib/Cake/Model/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index e41eefbb1fe..2acc2cafec6 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -1653,7 +1653,7 @@ public function read($fields = null, $id = null) { * @link http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#model-field */ public function field($name, $conditions = null, $order = null) { - if ($conditions === null && !in_array($this->id, [false, null], true)) { + if ($conditions === null && !in_array($this->id, array(false, null), true)) { $conditions = array($this->alias . '.' . $this->primaryKey => $this->id); }