Deprecation Error messages

Rishi
Rishi Member Posts: 1

C:\xampp\htdocs\project\config\cloudinary\vendor\cloudinary\cloudinary_php\src\Cloudinary.php on line 674

[28-Dec-2023 16:28:32 Asia/Kolkata] PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in C:\xampp\htdocs\project\config\cloudinary\vendor\cloudinary\cloudinary_php\src\Cloudinary.php on line 674

[28-Dec-2023 16:28:32 Asia/Kolkata] PHP Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in C:\xampp\htdocs\project\config\cloudinary\vendor\cloudinary\cloudinary_php\src\Cloudinary.php on line 698

[28-Dec-2023 16:28:32 Asia/Kolkata] PHP Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in C:\xampp\htdocs\project\config\cloudinary\vendor\cloudinary\cloudinary_php\src\Cloudinary.php on line 701


What is the probable reason for these warning msgs , My PHP version is 8.2, Do i need to update API file or need to fix something else?

Tagged:

Answers

  • DannyFromCloudinary
    DannyFromCloudinary Member, Cloudinary Staff Posts: 154

    Hey @Rishi . Thanks for getting in touch.

    These are deprecation warnings, rather than production errors, which can sometimes happen as dependencies evolve over time. This can be safely ignored for now, as it does not affect use of our PHP SDK. Our development team are aware of the warnings and will address these warnings in future versions of the SDK, so please make sure you're running php composer.phar update periodically.