Protect from serializing a closure object.
Protect from serializing a closure object.

Instead of preventing the serialization of all callable values (such as names of functions or those created by create_function), it's better to only prevent the serialization of the Closure object.
bradgrohs/phpunit,didiwuliu/phpunit,tronsha/phpunit,MajorCaiger/phpunit,DonaldKellett/phpunit,kyale/phpunit,Ma27/phpunit,apinstein/phpunit,SunDrop/phpunit,stof/phpunit,s001dxp/phpunit,masarakki/phpunit,matheusgomes17/phpunit,darol100/phpunit,apinstein/phpunit,Maks3w/phpunit,nonconforme/phpunit,lcp0578/phpunit,WebSeed/phpunit,m157y/phpunit,imshibaji/phpunit,malkusch/phpunit,9040044/phpunit,abacaphiliac/phpunit,dshafik/phpunit,CarsonF/phpunit,ezzatron/phpunit,ya7lelkom/phpunit,zhaoyan158567/phpunit,HappyRay/phpunit,serbanghita/phpunit,chrisbjr/phpunit,Lance0312/phpunit,MartinhoOmura/phpunit,apinstein/phpunit,duncan3dc/phpunit,FireWalkerX/phpunit,Shaked/phpunit,potherca-contrib/phpunit,OndraM/phpunit,Firehed/phpunit,asgrim/phpunit,luomor/phpunit,eelf/phpunit,simohammedhttp/phpunit,abachi/phpunit,beealone/phpunit,nelson6e65/phpunit,sebastianbergmann/phpunit,giorgiosironi/phpunit