Skip to content

Commit

Permalink
Fix check bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszdurka committed Apr 18, 2016
1 parent 0045857 commit b125392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Mocka/Invocations.php
Expand Up @@ -20,7 +20,7 @@ public function add(Invocation $invocation) {
* @throws Exception
*/
public function get($number) {
if (array_key_exists($number, $this->_list)) {
if (!garray_key_exists($number, $this->_list)) {
throw new Exception('Invocation not found');
}
return $this->_list[$number];
Expand Down

0 comments on commit b125392

Please sign in to comment.