[wp-trac] [WordPress Trac] #56219: Importer plugin's PHPUnit tests fail on PHP 8.1
WordPress Trac
noreply at wordpress.org
Thu Jul 14 13:28:28 UTC 2022
#56219: Importer plugin's PHPUnit tests fail on PHP 8.1
---------------------------+-----------------------------
Reporter: antonvlasenko | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: trunk
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
Steps to reproduce this bug:
1. Make sure you are on PHP 8.1
2. Install the importer plugin from the official repository:
https://github.com/WordPress/wordpress-importer
3. Install composer dependencies (you might have to use --ingore-platform-
reqs option).
4. Run test suite that is shipped with the importer plugin.
Expected result:
All PHPUnit tests pass.
Actual result:
PHPUnit tests fail with this error message:
{{{
PHP Fatal error: During inheritance of ArrayAccess: Uncaught 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 ...
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56219>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list