mirror of
https://github.com/flarum/core.git
synced 2025-08-05 16:07:34 +02:00
feat: STUBS!
This commit is contained in:
16
php-packages/phpstan/stubs/Contracts/Container.stub
Normal file
16
php-packages/phpstan/stubs/Contracts/Container.stub
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Container;
|
||||
|
||||
/** @extends \ArrayAccess<string, mixed> */
|
||||
interface Container extends \ArrayAccess
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
namespace Illuminate\Contracts\Foundation;
|
||||
|
||||
interface Application extends \Illuminate\Contracts\Container\Container
|
||||
{
|
||||
|
||||
}
|
17
php-packages/phpstan/stubs/Contracts/Pagination.stub
Normal file
17
php-packages/phpstan/stubs/Contracts/Pagination.stub
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Pagination;
|
||||
|
||||
/**
|
||||
* @mixin \Illuminate\Support\Collection
|
||||
* @mixin \Illuminate\Pagination\Paginator
|
||||
*/
|
||||
interface Paginator
|
||||
{}
|
||||
|
||||
/**
|
||||
* @mixin \Illuminate\Support\Collection
|
||||
* @mixin \Illuminate\Pagination\LengthAwarePaginator
|
||||
*/
|
||||
interface LengthAwarePaginator extends Paginator
|
||||
{}
|
19
php-packages/phpstan/stubs/Contracts/Support.stub
Normal file
19
php-packages/phpstan/stubs/Contracts/Support.stub
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Support;
|
||||
|
||||
interface Htmlable
|
||||
{}
|
||||
|
||||
interface Arrayable
|
||||
{
|
||||
/**
|
||||
* Get the instance as an array.
|
||||
*
|
||||
* @return array<mixed>
|
||||
*/
|
||||
public function toArray();
|
||||
}
|
||||
|
||||
interface Jsonable
|
||||
{}
|
Reference in New Issue
Block a user