PHPOffice / PHPPresentation

A pure PHP library for reading and writing presentations documents
https://phpoffice.github.io/PHPPresentation
Other
1.31k stars 521 forks source link

dechex(): Argument #1 ($num) must be of type int, float given #826

Open noblica06 opened 1 week ago

noblica06 commented 1 week ago

I open the file and get this error.

dechex(): Argument #1 ($num) must be of type int, float given

I cannot provide the file due to an NDA but i had the same issue as #729 which was fixed by removing those few lines of code but i got this issue now.

noblica06 commented 1 week ago

I fixed the issue for myself, the problem was with the casts only casting the first parameter and not the whole result Before: image After: image

noblica06 commented 1 week ago

Also had the same issue here:

Before: image

After: image