Skip to content

Commit b2a8639

Browse files
committed
Merge pull request #9 from pjcdawkins/allow-method-callbacks
Allow methods as callbacks using [object, 'method']
2 parents 4eea887 + e9232f3 commit b2a8639

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Completion.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,10 @@ public function isGlobal()
6060
*/
6161
public function run()
6262
{
63-
if (is_array($this->completion)) {
64-
return $this->completion;
65-
}
66-
6763
if ($this->isCallable()) {
6864
return call_user_func($this->completion);
6965
}
66+
return (array) $this->completion;
7067
}
7168

7269
/**

0 commit comments

Comments
 (0)