voronkovich / sberbank-acquiring-client

PHP client for Sberbank and Alphabank acquiring REST APIs
MIT License
190 stars 55 forks source link

Fatal error at src/Client.php:300 in PHP before 5.5 #2

Closed maderwin closed 8 years ago

maderwin commented 8 years ago

Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other words, the following will not work: empty(trim($name)). Instead, use trim($name) == false.

http://php.net/manual/en/function.empty.php

voronkovich commented 8 years ago

@maderwin, thanks for the reporting this bug. I've fixed it by using the count function instead the empty. Run composer update to get a new release.