leancloud / php-sdk

LeanCloud PHP SDK
Apache License 2.0
53 stars 23 forks source link

fix: require phone number when verify sms code #238

Closed juvenn closed 6 months ago

juvenn commented 6 months ago

Composer 2.3.0 dropped support for PHP <7.2.5 and you are running 5.6.40-70+ubuntu22.04.1+deb.sury.org+1, please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.

https://github.com/leancloud/php-sdk/actions/runs/9041650983/job/24847269660?pr=238

juvenn commented 6 months ago

Fatal error: Declaration of ACLTest::setUpBeforeClass() must be compatible with PHPUnit\Framework\TestCase::setUpBeforeClass(): void in /app/test/ACLTest.php on line 10

测试升级 php 8.0 失败,因为 phpunit 8.x 会报上面的错误。而 phpunit 7.x 限制了 php < 8 。只是测试有这个依赖要求,库本身并没有依赖。所以尽管没有测试,在其它 php 版本也是可以运行的。