class MyStyleText extends Style
{
public function __construct()
{
$this->setFillColor(new \ZendPdf\Color\Rgb(192, 192, 192));
$sPath = getcwd()."/data/fonts/arial.ttf";
$this->setFont(\ZendPdf\Font::fontWithPath($sPath), 20);
}
}
Catchable fatal error: Argument 1 passed to ZendPdf\Style::setFillColor() must be an instance of ZendPdf\Color, instance of ZendPdf\Color\Rgb given, called in C:\wamp\www\zf2b5\ZendSkeletonApplication\module\Luach\src\luach\Model\styles\MyStyleText.php on line 13 and defined in C:\wamp\www\zf2b5\ZendSkeletonApplication\vendor\zendframework\ZendPdf\library\ZendPdf\Style.php on line 103