thecodingmachine / mouf

The Mouf PHP framework: an open-source PHP framework providing an easy way to download, install, use and reuse components, with a graphical user interface.
MIT License
54 stars 28 forks source link

Incompatibility with PHP 7.2 on Windows #152

Open WillyReyno opened 6 years ago

WillyReyno commented 6 years ago

We are encountering some errors with Mouf while migrating a Windows server from PHP 7.0 to 7.2.

Here are the errors we get :

( ! ) Fatal error: Uncaught Exception: Unable to unserialize message:
( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in D:\path\volume\vendor\mouf\mouf\src\Mouf\Reflection\MoufReflectionProxy.php on line 210

And

( ! ) Fatal error: Uncaught Exception: Unable to unserialize message:
( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in phar://D:/path/volume/vendor/mouf/mouf/composer.phar/vendor/symfony/process/Symfony/Component/Process/Pipes/WindowsPipes.php on line 222