Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from vragovR/add-user-filter
Browse files Browse the repository at this point in the history
add phone filter for /users request
  • Loading branch information
vragovR authored Jun 17, 2019
2 parents 43a7909 + f95908f commit 55f92c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vragovr/safecrow-api",
"description": "SafeCrow API v3 Client",
"version": "1.0.6",
"version": "1.0.7",
"type": "library",
"keywords": [
"http",
Expand Down
4 changes: 3 additions & 1 deletion src/Api/UserApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ public function all(array $params = []): array
$resolver
->setDefaults([
'email' => null,
'phone' => null,
])
->setAllowedTypes('email', ['string', 'null']);
->setAllowedTypes('email', ['string', 'null'])
->setAllowedTypes('phone', ['string', 'null']);

$params = array_filter($resolver->resolve($params));

Expand Down

0 comments on commit 55f92c1

Please sign in to comment.