diff --git a/README.md b/README.md index 1ee3f64..fb3f2ad 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # Twilio Application Component for Yii2 -[![Latest Version](https://img.shields.io/github/release/2amigos/yii2-twilio-component.svg?style=flat-square)](https://github.com/2amigos/yii2-twilio-component/releases) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md) [![Total Downloads](https://poser.pugx.org/2amigos/yii2-twilio-component/downloads)](https://packagist.org/packages/2amigos/yii2-twilio-component) diff --git a/composer.json b/composer.json index 2d0c3e9..0f65c77 100644 --- a/composer.json +++ b/composer.json @@ -34,9 +34,9 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": ">=7", + "php": ">=7.1", "yiisoft/yii2": "~2.0.11", - "twilio/sdk": "^5.15" + "twilio/sdk": "^6.43.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^2.3" diff --git a/src/TwilioComponent.php b/src/TwilioComponent.php index 75f4297..e060789 100644 --- a/src/TwilioComponent.php +++ b/src/TwilioComponent.php @@ -111,7 +111,7 @@ public function getClient(): Client * @return string * */ - protected function parseFrom(string $from): string + protected function parseFrom(?string $from): string { if (null === $from) { if (null === $this->phoneNumber) {