Your project should not use deprecated PHP features

More information: https://insight.symfony.com/what-we-analyse/php.use_deprecated_function

  1. $result = curl_exec($curl);
  2. if (empty($result)) {
  3. $info = curl_getinfo($curl);
  4. curl_close($curl);
    curl_close() has been deprecated in PHP 8.5 and will be removed from PHP in the next major version.
    Time to fix: about 2 hours
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  5. } else {
  6. $info = 'error';
  7. }
  8. return $info;

Mutable DateTime should be avoided in favor of DateTimeImmutable

More information: https://insight.symfony.com/what-we-analyse/php.prefer_date_time_immutable

  1. </div>
  2. <?php
  3. if ((ACCOUNT_DOB == 'true' && ($CLICSHOPPING_Customer->getCustomersGroupID() == 0)) || (ACCOUNT_DOB_PRO == 'true' && ($CLICSHOPPING_Customer->getCustomersGroupID() != 0))) {
  4. if (!empty($customers_dob)) {
  5. $customers_dob = DateTime::toShort($customers_dob);
  6. $dateObj = new \DateTime($customers_dob);
    Use DateTimeImmutable instead of DateTime.
    Time to fix: about 30 minutes
    Read doc Permalink Copy Prompt
    Last edited by ClicShopping
  7. $customers_dob = $dateObj->format('Y-m-d');
  8. } else {
  9. $customers_dob = null;
  10. }
  11. ?>