“已修复PHP 7.2警告:count():参数必须为数组或obj…”
if(**count**($clientServiceRepo->findRealService()) == 0 && $clientServiceRepo->findActiveTrial() == NULL && $clientServiceRepo->findTerminatedTrial($domain->getDomainname()) == NULL)
我修复了该代码。我添加了is_array()
而不是count()
...
if(**is_array**($clientServiceRepo->findRealService()) == 0 && $clientServiceRepo->findActiveTrial() == NULL && $clientServiceRepo->findTerminatedTrial($domain->getDomainname()) == NULL)