Closed smartssa closed 4 years ago
Hi @smartssa This is probably an indicator that you have a conflicting plugin that employs ExtendRelataionsTrait. Is that accurate?
Not that I am aware of, I will investigate.
I don't have any other items that use ExtendRelataionsTrait
, but I've discovered that phpStorm 2020.1.1 isn't giving this error. I'll go complain to them. Thanks!
Would you mind doing a global search for ExtendRelataionsTrait
in your code and vendor files to see where this exists?
Only mentions are: /laravel-pivot-events/src/Traits/ExtendRelationsTrait.php /laravel-pivot-events/src/Traits/PivotEventTrait.php
Found a few issues on JetBrains: https://youtrack.jetbrains.com/issue/WI-53153 https://youtrack.jetbrains.com/issue/WI-53171
Ah! Perfect :) whew
Describe the bug It's a strange phpStorm code linter warning that makes me think something with relations may not work as expected.
When implementing a
use Cachable
in my model: "Trait method 'newBelongsToMany' will not be applied, because it collides with 'ExtendRelationsTrait'"Environment
Additional context Could be a non-issue.