[wp-trac] [WordPress Trac] #57009: Deprecated: notices all over in admin
WordPress Trac
noreply at wordpress.org
Sat Nov 5 23:01:17 UTC 2022
#57009: Deprecated: notices all over in admin
--------------------------+------------------------------
Reporter: roughpixels | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Description changed by sabernhardt:
Old description:
> This has been going on for the last couple of versions. I develop themes
> with XAMPP locally and when I install a fresh copy of WordPress (eg: 6.1
> now), then turn on debug, I get inundated with "Depreciated:" notices.
> For example, fresh install, go to Plugins, and you might see them (see
> screenshot); install and activate a plugin, such as Classic
> Editor...sometimes the notices disappear after several refreshes.
>
> I get these notices all the time with debugging on, which makes it
> difficult to test/debug themes.
>
> Examples:
>
> {{{
> Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should
> either be compatible with ArrayAccess::offsetExists(mixed $offset): bool,
> or the #[\ReturnTypeWillChange] attribute should be used to temporarily
> suppress the notice in D:\xampp\htdocs\naturals\wp-
> includes\Requests\Cookie\Jar.php on line 63
>
> Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should
> either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed,
> or the #[\ReturnTypeWillChange] attribute should be used to temporarily
> suppress the notice in D:\xampp\htdocs\naturals\wp-
> includes\Requests\Cookie\Jar.php on line 73
> }}}
New description:
This has been going on for the last couple of versions. I develop themes
with XAMPP locally and when I install a fresh copy of WordPress (eg: 6.1
now), then turn on debug, I get inundated with "Deprecated:" notices. For
example, fresh install, go to Plugins, and you might see them (see
screenshot); install and activate a plugin, such as Classic
Editor...sometimes the notices disappear after several refreshes.
I get these notices all the time with debugging on, which makes it
difficult to test/debug themes.
Examples:
{{{
Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should
either be compatible with ArrayAccess::offsetExists(mixed $offset): bool,
or the #[\ReturnTypeWillChange] attribute should be used to temporarily
suppress the notice in D:\...\wp-includes\Requests\Cookie\Jar.php on line
63
Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should
either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or
the #[\ReturnTypeWillChange] attribute should be used to temporarily
suppress the notice in D:\...\wp-includes\Requests\Cookie\Jar.php on line
73
}}}
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57009#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list