tecnickcom/tc-lib-barcode

Visibility Fatal with Init

ashnazg opened this issue · 3 comments

Following your README example, I'm seeing this error:

Fatal error: Call to protected Com\Tecnick\Barcode\Type\Square\QrCode\Init::init() from context 'Com\Tecnick\Barcode\Type\Square\QrCode' in vendor/tecnickcom/tc-lib-barcode/src/Type/Square/QrCode.php on line 217

Stacktrace:

Com\Tecnick\Barcode\Barcode->getBarcodeObj(   )                | ..\index.php:32
Com\Tecnick\Barcode\Type->__construct(   )                     | ..\Barcode.php:122
Com\Tecnick\Barcode\Type\Square\QrCode->setBars(   )           | ..\Type.php:171
Com\Tecnick\Barcode\Type\Square\QrCode->encodeString(   )      | ..\QrCode.php:179

v1.15.20 installed via Composer on Windows 10 using PHP 5.3.2.

I am unable to reproduce this issue.
I wonder if it is something Windows-specific?
Which php version are you using?

v1.15.20 installed via Composer on Windows 10 using PHP 5.3.2.

The minimum supported version for tc-lib-barcode is PHP 5.4.0.