Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

PhpStorm version 2020.3 shows an error on $timestamps property in my Laravel model:

{Model} and HasTimestamps define the same property timestamps

enter image description here

question from:https://stackoverflow.com/questions/65153476/phpstorm-model-and-hastimestamps-define-the-same-property-timestamps-laravel

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
205 views
Welcome To Ask or Share your Answers For Others

1 Answer

This is a bug and it's introduced in the new version of PhpStorm.

It's not possible to disable the warning since it's an annotator inspection. I also don't recommend changing your code for the sole purpose of fixing this warning since it's an IDE bug and will be addressed in their next patch. If it's not really causing any breaking side effects, just wait until the patch is released!


Update

This bug has been fixed in PhpStorm 2020.3.1.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...