mirror of
https://github.com/flarum/core.git
synced 2025-08-08 17:36:38 +02:00
feat: STUBS!
This commit is contained in:
31
php-packages/phpstan/stubs/Illuminate/Database/Gate.stub
Normal file
31
php-packages/phpstan/stubs/Illuminate/Database/Gate.stub
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Auth\Access
|
||||
{
|
||||
|
||||
interface Gate
|
||||
{
|
||||
/**
|
||||
* Get a guard instance for the given user.
|
||||
*
|
||||
* @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
|
||||
* @return \Illuminate\Contracts\Auth\Access\Gate
|
||||
*/
|
||||
public function forUser($user);
|
||||
}
|
||||
}
|
||||
|
||||
namespace Illuminate\Auth\Access
|
||||
{
|
||||
|
||||
class Gate implements \Illuminate\Contracts\Auth\Access\Gate
|
||||
{
|
||||
/**
|
||||
* Get a guard instance for the given user.
|
||||
*
|
||||
* @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
|
||||
* @return \Illuminate\Contracts\Auth\Access\Gate
|
||||
*/
|
||||
public function forUser($user);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user