You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PhpDoc for return type for class constructors should be the class type that's is being instantiated.
Example: return type for Blueprint's constructor should be Blueprint instead of void. File:vendor/laravel/framework/src/Illuminate/Database/Schema/Blueprint.php
<?phpnamespaceIlluminate\Database\Schema;
useClosure;
useIlluminate\Support\Fluent;
useIlluminate\Database\Connection;
useIlluminate\Database\Schema\Grammars\Grammar;
class Blueprint {
/** * Create a new schema blueprint. * * @param string $table * @param Closure $callback * @return Blueprint (this was previously void) */publicfunction__construct($table, Closure$callback = null)
{
$this->table = $table;
if ( ! is_null($callback)) $callback($this);
}
//...
}