Answer the question
In order to leave comments, you need to log in
Laravel syntax highlighting in PhpStorm?
When creating a migration file, such a highlighting of such an error takes off
IDE helper installed, cleaned the compiled files, re-optimized the project, and generated IDEhelper files, the highlighting of the "error" remained ... who will tell you how to solve it?
(I can turn off the error highlighting, but I really don’t want to)
Answer the question
In order to leave comments, you need to log in
These are not errors, Warning. The point here is that these are attributes (more precisely, methods) set by the magic method (__call). Because Since these methods are not documented (via @method in PHPDoc), PhpStorm doesn't know about them. The IDE helper won't help here, so all that's left is to ignore these messages.
/
/**
* @method Fluent first()
* @method Fluent after($column)
* @method Fluent change()
* @method Fluent nullable()
* @method Fluent unsigned()
* @method Fluent unique()
* @method Fluent index()
* @method Fluent primary()
* @method Fluent default($value)
* @method Fluent onUpdate($value)
* @method Fluent onDelete($value)
* @method Fluent references($value)
* @method Fluent on($value)
*/
\vendor\laravel\framework\src\Illuminate\Support\Fluent.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question