Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on blade files using bootstrapper on phpstorm #327

Open
Cperbony opened this issue Oct 12, 2017 · 1 comment
Open

Error on blade files using bootstrapper on phpstorm #327

Cperbony opened this issue Oct 12, 2017 · 1 comment

Comments

@Cperbony
Copy link

Hy guys.
I´ve got a boring warning message on PhpStorm using Bootstrapper 5.9.1 on laravel 5.3.
PhpStorm keeping warning on the blade files about an error:
method __toString is not implemented for (on each class of Bootstrapper).

If i use static import, those warnings disappear, but i got an error: Non-static method Bootstrapper\Table::withContents() should not be called statically.

if i return to a non static import , it runs ok, but the warnings on IDE returns
Example: Table::withContents().

Can anyone help how to solve it?

@Cperbony
Copy link
Author

One solution that i found was to put the bootstrapper code into a php variable.
$varPhp = Table::withContents()......................................................., etc ;
Than call it on the secure interpolation on blade files {!! $varPhp!!}.
For while, it´s solved the problem. Anyway, if is there another, or better solution it will be very welcome.
Hails!

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

No branches or pull requests

1 participant