Skip to content

Commit e026435

Browse files
author
Jason Frame
committed
Merge pull request #53 from cspray/app-offset-get
Return null from Application::offsetGet if argument doesn't exist
2 parents 7a2549d + adb117e commit e026435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/phake/Application.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function offsetExists($k) {
6363
}
6464

6565
public function offsetGet($k) {
66-
return $this->args[$k];
66+
return isset($this->args[$k]) ? $this->args[$k] : null;
6767
}
6868

6969
public function offsetSet($k, $v) {

0 commit comments

Comments
 (0)