Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Null argument value fix #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/TwilioComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down