{"id":16940974,"date":"2023-08-02T09:40:07","date_gmt":"2023-08-02T09:40:07","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-deprecated-33\/"},"modified":"2023-08-02T09:40:07","modified_gmt":"2023-08-02T09:40:07","slug":"php-deprecated-33","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-deprecated-33\/","title":{"rendered":"PHP Deprecated"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi developers of EDD, <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First of all, thank you for developing this awesome extension for WordPress. We recently upgraded to EDD 3.1.5 and PHP version 8.2 and noticed that some parts are not compatible yet with 8.2.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Would it be able to fix these errors, please?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DeprecatedReturn type of Carbon\\Carbon::createFromFormat($format, $time, $tz = null) should either be compatible with DateTime::createFromFormat(string $format, string $datetime, ?DateTimeZone $timezone = null): DateTime|false, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice+<\/p>\n\n\n\n<ol>\n<li>wp-content\/plugins\/easy-digital-downloads\/includes\/libraries\/Carbon.php:568<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">1Plugin: easy-digital-downloadsDeprecatedReturn type of Carbon\\Carbon::getLastErrors() should either be compatible with DateTime::getLastErrors(): array|false, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice+<\/p>\n\n\n\n<ol>\n<li>wp-content\/plugins\/easy-digital-downloads\/includes\/libraries\/Carbon.php:600<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">1Plugin: easy-digital-downloadsDeprecatedReturn type of Carbon\\Carbon::setTimezone($value) should either be compatible with DateTime::setTimezone(DateTimeZone $timezone): DateTime, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice+<\/p>\n\n\n\n<ol>\n<li>wp-content\/plugins\/easy-digital-downloads\/includes\/libraries\/Carbon.php:944<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">1Plugin: easy-digital-downloadsDeprecatedReturn type of Carbon\\Carbon::setDate($year, $month, $day) should either be compatible with DateTime::setDate(int $year, int $month, int $day): DateTime, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice+<\/p>\n\n\n\n<ol>\n<li>wp-content\/plugins\/easy-digital-downloads\/includes\/libraries\/Carbon.php:859<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">1Plugin: easy-digital-downloadsDeprecatedReturn type of EDD\\Utils\\Date::format($format = &#8216;datetime&#8217;) should either be compatible with DateTime::format(string $format): string, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice+<\/p>\n\n\n\n<ol>\n<li>wp-content\/plugins\/easy-digital-downloads\/includes\/utils\/class-date.php:58<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">1Plugin: easy-digital-downloadsDeprecatedCreation of dynamic property Easy_Digital_Downloads::$email_summary_admin is deprecated+<\/p>\n\n\n\n<ol>\n<li>wp-content\/plugins\/easy-digital-downloads\/includes\/class-easy-digital-downloads.php:228<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">1Plugin: easy-digital-downloadsDeprecatedCreation of dynamic property EDD\\Component::$types is deprecated+<\/p>\n\n\n\n<ol>\n<li>wp-content\/plugins\/easy-digital-downloads\/includes\/orders\/functions\/types.php:62<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">1Plugin: easy-digital-downloadsDeprecatedAutomatic conversion of false to array is deprecated+<\/p>\n\n\n\n<ol>\n<li>wp-content\/plugins\/easy-digital-downloads\/includes\/payments\/functions.php:1763<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">1Plugin: easy-digital-downloadsDeprecatedDateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated+<\/p>\n\n\n\n<ol>\n<li>wp-content\/plugins\/easy-digital-downloads\/includes\/libraries\/Carbon.php:291<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">1Plugin: easy-digital-downloadsDeprecatedstrpos(): Passing null to parameter #1 ($haystack) of type string is deprecated+<\/p>\n\n\n\n<ol>\n<li>wp-includes\/functions.php:7053<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">3Plugin: easy-digital-downloadsDeprecatedstr_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated+<\/p>\n\n\n\n<ol>\n<li>wp-includes\/functions.php:2165<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">3Plugin: easy-digital-downloadsDeprecatedConstant FILTER_SANITIZE_STRING is deprecated+<\/p>\n\n\n\n<ol>\n<li>wp-content\/plugins\/easy-digital-downloads\/src\/Admin\/Extensions\/Extension_Manager.php:87<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">1Plugin: easy-digital-downloads<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks in advance! <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"template":"","class_list":["post-16940974","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16940974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16940974\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16940974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}