picqer / php-barcode-generator

Barcode generator in PHP that is easy to use, non-bloated and framework independent.
GNU Lesser General Public License v3.0
1.67k stars 402 forks source link

Error with Php7.3 - strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call #81

Closed shishtpal closed 4 years ago

shishtpal commented 5 years ago

Hi My Code is throwing this error, may be because of latest PHP7.3.

The application could not run because of the following error:

Details
Type: ErrorException
Code: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
File: /var/www/html/vendor/picqer/php-barcode-generator/src/BarcodeGenerator.php
Line: 1370

Thanks

mannieg commented 4 years ago

Try casting the value to a string.

casperbakker commented 4 years ago

That is the call you are trying to make? We run this package fine in PHP 7.3, so that is probably not what is causing this.