[wp-trac] [WordPress Trac] #51559: PHP 8.0: fix fatal error "Non-static method cannot be called statically"

WordPress Trac noreply at wordpress.org
Sat Oct 17 16:35:00 UTC 2020


#51559: PHP 8.0: fix fatal error "Non-static method cannot be called statically"
-----------------------------------+-------------------------------
 Reporter:  jrf                    |       Owner:  SergeyBiryukov
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:  5.6
Component:  Revisions              |     Version:  trunk
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  has-patch commit php8  |     Focuses:  coding-standards
-----------------------------------+-------------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49185" 49185]:
 {{{
 #!CommitTicketReference repository="" revision="49185"
 Revisions: Explicitly declare the `Text_Diff::_getTempDir()` method as
 `static`.

 This fixes a "Non-static method cannot be called statically" fatal error
 on PHP 8.

 Props jrf.
 Fixes #51559.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51559#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list