Issue with imageWithLogo.php #119
-
Hi all and codemasher and congrats for this great library ! I've just installed it localy with composer and I'm running some tests with the examples. So far so good, the QRCodes from image.php and svg.php are displayed just by changing my path to the autoload... But I got an issue with imageWithLogo.php. I've copy/pasted the .png to ./images/ and changed its path at the bottom of the php file but when I load the file, the page returns an error :
The line 26 is "protected int $logoSpaceWidth;" in the class "LogoOptions"
Did I do something wrong ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That sounds like you're running v4.x on a PHP lower than 7.4. The error means that your PHP can't interpret the typed properties which were introduced in 7.4. You can either try v3.4.x which runs from PHP 7.2 onwards or upgrade/switch the PHP version to 7.4 or greater. |
Beta Was this translation helpful? Give feedback.
That sounds like you're running v4.x on a PHP lower than 7.4. The error means that your PHP can't interpret the typed properties which were introduced in 7.4. You can either try v3.4.x which runs from PHP 7.2 onwards or upgrade/switch the PHP version to 7.4 or greater.