![]() ![]() As mentioned, PHP 8.1 was released 404 days ago. #54504 was opened 14 months ago on, one day before PHP 8.1 was released. The biggest blocker for WordPress to properly support recent versions of PHP was the update to Requests library to version 2.0.0: It’s illustrative to dig into what’s been holding back PHP 8.1 support. This has caused a rift with developers and many of them view WordPress as a subpar product that falls short of the standards set by more reputable platforms. This shift in focus has led to the perception that WordPress is more similar to Squarespace than to other, more developer-focused application stacks, such as Laravel and Symfony. For example: Notices from WP-CLIĭeprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the # attribute should be used to temporarily suppress the notice in wp-includes/Requests/Cookie/Jar.php on line 63ĭeprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the # attribute should be used to temporarily suppress the notice in wp-includes/Requests/Cookie/Jar.php on line 73ĭeprecated: Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the # attribute should be used to temporarily suppress the notice in wp-includes/Requests/Cookie/Jar.php on line 89ĭeprecated: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the # attribute should be used to temporarily suppress the notice in wp-includes/Requests/Cookie/Jar.php on line 111ĭealing with these deprecation notices (or applying hacks to suppress them, see below) is not just an annoyance, it’s a symptom of WordPress prioritizing “site builders” over developers. ![]() You’ll get spammed with deprecated notices while working on your PHP 8.1+ based WordPress sites. Notices with WP_DEBUG enabledįor developers, this results in a poor experience when WP_DEBUG is enabled or when running some WP-CLI commands. 404 days later, full support for PHP 8.1 is still “not found”. As of, the latest version of WordPress (6.1.1) still only has “beta support” for PHP 8.0+. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |