[wp-trac] [WordPress Trac] #56858: Blogger Importer: Undefined (dynamic) properties
WordPress Trac
noreply at wordpress.org
Wed Oct 19 21:24:34 UTC 2022
#56858: Blogger Importer: Undefined (dynamic) properties
----------------------------+-------------------------------
Reporter: ironprogrammer | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: WordPress.org
Component: Import | Version:
Severity: normal | Keywords: needs-patch php82
Focuses: |
----------------------------+-------------------------------
Under PHP 7.4, the Blogger Importer plugin causes notices like the
following:
''If new posts are imported:''
Undefined property: Blogger_Importer::$posts_done in ../blogger-importer
/blogger-importer.php on line 408
== Background
[https://github.com/WordPress/blogger-
importer/commit/f1c9d6a7fe42fe4b88b475c9a92a96bd7cee8dba f1c9d6a7]
introduced several dynamic properties to the `Blogger_Importer` class,
such as counters for skipped and imported posts.
In PHP 8.0 dynamic properties log as warnings,
[https://php.watch/versions/8.2/dynamic-properties-deprecated in 8.2 as
deprecations], and in 9.0 result in fatal errors.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56858>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list