Font::setSize() must be of the type int, float given

You have tried to set a float as the font size (such as 7.125), but this function requires an integer (such as 7 - see the exact function you're calling below). To fix this, you need to ensure you're only passing an integer value - perhaps using the PHP functions of round(), floor(), ceil() or intval() on the variable?


  • Set Size. */ public function setSize(int $pValue = 10): self { $this->size = $pValue;

     return $this;


Created at 3 weeks ago