From 66cf42e018f90cf27d6f6fd683049192a1ac0847 Mon Sep 17 00:00:00 2001 From: Benoit Asselin Date: Mon, 19 Jun 2017 23:32:26 +0200 Subject: [PATCH] Notice: Only variable references Notice: Only variable references should be returned by reference --- src/AbstractContainer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AbstractContainer.php b/src/AbstractContainer.php index 8d0c80ea..769beed3 100644 --- a/src/AbstractContainer.php +++ b/src/AbstractContainer.php @@ -425,7 +425,8 @@ public function offsetExists($key) public function &offsetGet($key) { if (! $this->offsetExists($key)) { - return; + $null = null; + return $null; } $storage = $this->getStorage(); $name = $this->getName();