[wp-trac] [WordPress Trac] #50482: Uncaught Exception: Serialization of 'Closure' is not allowed when run PHPUnit in plugin development

WordPress Trac noreply at wordpress.org
Tue Nov 17 21:25:06 UTC 2020


#50482: Uncaught Exception: Serialization of 'Closure' is not allowed when run
PHPUnit in plugin development
------------------------------+------------------------------
 Reporter:  yshinoda          |       Owner:  (none)
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  5.5
 Severity:  critical          |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:17 TimothyBlynJacobs]:
 > IMO we should close this as `wontfix`. I don't think Core should be
 forced to forego any use of closures that may wind up in global state
 somewhere.

 It's not quite clear why this used to work in 5.4.2 but not in 5.5 though,
 would be great to figure out what exactly is causing the fatal error and
 maybe display a more appropriate message if possible.

 comment:9 aims to track down the relevant changes, needs more
 investigation though.

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


More information about the wp-trac mailing list