Skip to content
This repository has been archived by the owner on Sep 28, 2018. It is now read-only.

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

Open
successivesoftware opened this issue Jul 9, 2016 · 1 comment
Open

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

successivesoftware opened this issue Jul 9, 2016 · 1 comment

Comments

@successivesoftware
Copy link

successivesoftware commented Jul 9, 2016

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants