sms-counter-php icon indicating copy to clipboard operation
sms-counter-php copied to clipboard

PHP 8 deprecations

Open Ang3 opened this issue 3 years ago • 0 comments

Describe the bug

PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated (line 366 and 479).

https://github.com/instasent/sms-counter-php/blob/a0f017d6fa776a33e18a4e36257fb5d6453897ef/SMSCounter.php#L366 https://github.com/instasent/sms-counter-php/blob/a0f017d6fa776a33e18a4e36257fb5d6453897ef/SMSCounter.php#L479

To reproduce

Run the library on PHP8, then try to sanitize a value. You should have some deprecations.

(OPTIONAL) Additional context

  • PHP 8

Ang3 avatar Feb 15 '22 16:02 Ang3