update return type test logic
update return type test logic

- use internal property `$allowedReturnTypes` (maybe making it a static property or a class constant would be advisable)
- use strict `in_array` test as for instance this expression `in_array(0, ['a', 'b'])` evaluates to true
zendframework/zend-db,zendframework/zend-db