phpgearbox / pdf

A PDF builder using HTML or DOCX templates.
MIT License
180 stars 112 forks source link

Gives error on PHP 7 when converting docx to PDF #5

Open successivesoftware opened 8 years ago

successivesoftware commented 8 years ago

Here is the message for your reference FatalErrorException in String.php line 16: Cannot use 'String' as class name as it is reserved in String.php line 16 vendor/gears/string/src/String.php

netizenking commented 7 years ago

my composer.json looks like this:

"require": { "gears/string": "0.6.0", "gears/di": "", "symfony/process": "2.", "symfony/filesystem": "2.", "google/apiclient": "1.", "jakoch/phantomjs-installer": "1.9.8" } And i have this statement in my controller method $pdf = Gears\Pdf::convert("C:\xampp\htdocs\YobisoftUniserve\BEBC00022017.docx"); I am getting this error:

A PHP Error was encountered

Severity: 8192

Message: Non-static method Gears\String\Str::contains() should not be called statically

Anybody with a fix to this error please? Thank you