Skip to content

Commit 6d33c86

Browse files
committed
Merge pull request #78 from etu/master
SphinxQL::create() will return an instance of the object which was called
2 parents 77613e2 + 9762656 commit 6d33c86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SphinxQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function __construct(ConnectionInterface $connection = null, $static = fa
221221
*/
222222
public static function create(ConnectionInterface $connection)
223223
{
224-
return new SphinxQL($connection);
224+
return new static($connection);
225225
}
226226

227227
/**

0 commit comments

Comments
 (0)