Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'qa/393'
Browse files Browse the repository at this point in the history
Close #393
  • Loading branch information
michalbundyra committed Dec 31, 2019
2 parents 4c68f2c + f2ad4a8 commit 149f602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ResultSet/ResultSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ResultSet extends AbstractResultSet
*/
public function __construct($returnType = self::TYPE_ARRAYOBJECT, $arrayObjectPrototype = null)
{
if (in_array($returnType, [self::TYPE_ARRAY, self::TYPE_ARRAYOBJECT])) {
if (in_array($returnType, $this->allowedReturnTypes, true)) {
$this->returnType = $returnType;
} else {
$this->returnType = self::TYPE_ARRAYOBJECT;
Expand Down

0 comments on commit 149f602

Please sign in to comment.