PHP 8.1 | Fix "Implicit conversion from non-compatible float" deprecation notice
PHP 8.1 | Fix "Implicit conversion from non-compatible float" deprecation notice

As reported in 9931.

Unfortunately I gave not been able to track down the input which is causing the notices to be thrown, which is why I haven't added a test case to the unit tests. Would be great if someone would known the exact input to use for those.

The issue (and fix) can be verified by using the "quick preview" option and choosing `git.master` with this code sample: https://3v4l.org/1fr2g

stof/composer,composer/composer,milleruk/composer,johnstevenson/composer,nicolas-grekas/composer,staabm/composer,stefangr/composer,alcohol/composer