exporter icon indicating copy to clipboard operation
exporter copied to clipboard

Fix exception when types are not coherent

Open loevgaard opened this issue 5 years ago • 1 comments

I got this exception:

Uncaught TypeError: str_repeat() expects parameter 2 to be integer, float given in /Users/loevgaard/PhpstormProjects/SyliusStockMovementPlugin/vendor/sebastian/exporter/src/Exporter.php:255

and fixed it by doing this small change.

loevgaard avatar Aug 14 '19 13:08 loevgaard

I would like to understand why it is float instead of int before (possibly) hiding any underlying root cause.

sebastianbergmann avatar Aug 14 '19 14:08 sebastianbergmann