LaravelMetaTags
LaravelMetaTags copied to clipboard
Cannot call abstract method
Hello,
If I write this code, as the doc says, I get this message returned by phpStorm. My page doesn't bug but the editor doesn't seem to like it.
use Butschster\Head\Facades\Meta;
Meta::setTitle('Dashboard')
->setDescription('Dashboard');
Cannot call abstract method 'MetaInterface::setTitle'
Is there anything I can do? Thank you
This is a bug from PhpStorm 2021.2.4 (and perhaps other earlier versions). I updated to 2021.3 (https://www.jetbrains.com/phpstorm/whatsnew/) and the issue is fixed.
Hello @piep14,
As you are using the Facade class of this package, this will keep on showing because of the autocomplete feature of PHPStorm, a simple PR can be made to add PHPDocs to the facade class to point out the accessible methods and their type hinting accordingly.
I'll try to do this myself today.