Update QrCodeExtension.php

PHP 5.3 compatibility bugfix