twilio / authy-php

A PHP client for Authy
245 stars 87 forks source link

Add psalm support and refactor following psalm review #88

Closed settermjd closed 3 years ago

settermjd commented 3 years ago

This PR:

More specifically, The intent of this commit is to update the code following a static analysis using Psalm. The docblock comments have been updated to include more of the parameter types and class property types used throughout the classes. I'm not sure of the types of all parameters and properties yet, as I need to learn more about the Authy API, but I've updated them where I've ascertained the correct types to add. The change also adds PHP's cURL extension as a required project extension, because the code makes use of two cURL constants.

Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.