V
V
Voll.2016-05-18 21:06:46
phpstorm
Voll., 2016-05-18 21:06:46

Laravel syntax highlighting in PhpStorm?

When creating a migration file, such a highlighting of such an error takes off
a0HpJve.png
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

2 answer(s)
S
Sergey Novikov, 2016-05-18
@BOOMER_74

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.

V
Voll., 2016-05-18
@vollthegreat

/

/**
 * @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)
 */

As a solution number 1, I found this, write in
\vendor\laravel\framework\src\Illuminate\Support\Fluent.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question