PHP 5.3 compatibility bugfix

Original code resulted in "Parse error: syntax error, unexpected T_OBJECT_OPERATOR in .../vendor/endroid/qrcode-bundle/Endroid/Bundle/QrCodeBundle/Twig/Extension/QrCodeExtension.php on line 102" with PHP 5.3.17.