Vonage / vonage-php-sdk-core

Vonage REST API client for PHP. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
https://developer.vonage.com/
Apache License 2.0
916 stars 180 forks source link

Changed authhandler to use array #361

Closed dragonmantank closed 1 year ago

dragonmantank commented 1 year ago

Description

Fixes bug where the APIResource did not allow multiple auth handlers

Motivation and Context

Many of the APIs now support multiple levels of authentication, so this allows an an array to be saved to the object

How Has This Been Tested?

Unit tests

Example Output or Screenshots (if appropriate):

Types of changes

Checklist:

codecov-commenter commented 1 year ago

Codecov Report

Merging #361 (ed5c78a) into main (aaae3bf) will decrease coverage by 1.37%. The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main     #361      +/-   ##
============================================
- Coverage     78.19%   76.83%   -1.37%     
- Complexity     1815     1885      +70     
============================================
  Files           171      171              
  Lines          4866     4994     +128     
============================================
+ Hits           3805     3837      +32     
- Misses         1061     1157      +96     
Impacted Files Coverage Δ
src/Client/APIResource.php 93.17% <100.00%> (+2.03%) :arrow_up:
src/Client.php 20.94% <0.00%> (-0.19%) :arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more