The @method docblocks on facade classes are placed before the use import. A class docblock has to sit immediately above the class declaration, with imports above it. As written, the block is detached, so IDEs and static analysis do not attach the @method tags to the class.
src/Phaseolies/Support/Facades/Auth.php is the example. The same order is used across the other files in src/Phaseolies/Support/Facades/.
Current:
namespace Phaseolies\Support\Facades;
/**
* @method static try(array $credentials = [], bool $remember = false): bool
* ...
* @see \Phaseolies\Auth\Security\Authenticate
*/
use Phaseolies\Facade\BaseFacade;
class Auth extends BaseFacade
Expected:
namespace Phaseolies\Support\Facades;
use Phaseolies\Facade\BaseFacade;
/**
* @method static try(array $credentials = [], bool $remember = false): bool
* ...
* @see \Phaseolies\Auth\Security\Authenticate
*/
class Auth extends BaseFacade
Move each facade docblock to directly above its class and leave the use statements above the docblock.
The
@methoddocblocks on facade classes are placed before theuseimport. A class docblock has to sit immediately above the class declaration, with imports above it. As written, the block is detached, so IDEs and static analysis do not attach the@methodtags to the class.src/Phaseolies/Support/Facades/Auth.phpis the example. The same order is used across the other files insrc/Phaseolies/Support/Facades/.Current:
Expected:
Move each facade docblock to directly above its class and leave the
usestatements above the docblock.