Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix static tests #11

Merged
merged 2 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"illuminate/pipeline": "^9.52.16 || ^10.28.0 || ^11.0",
"illuminate/support": "^9.52.16 || ^10.28.0 || ^11.0",
"phpmyadmin/sql-parser": "^5.9.0",
"phpstan/phpstan": "^1.11.2"
"phpstan/phpstan": "^1.12.1"
},
"require-dev": {
"doctrine/coding-standard": "^12.0",
Expand Down
2 changes: 1 addition & 1 deletion stubs/10.0.0/Contracts/Database/Eloquent.stub
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Illuminate\Contracts\Database\Eloquent;
use Illuminate\Contracts\Database\Query\Builder as BaseContract;

/**
* @mixin \Illuminate\Database\Eloquent\Builder
* @mixin \Illuminate\Database\Eloquent\Builder<*>
*/
interface Builder extends BaseContract
{}
6 changes: 6 additions & 0 deletions stubs/common/Contracts/Queue.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@

namespace Illuminate\Contracts\Queue;

interface Factory {}

interface Monitor {}

interface QueueableCollection {}

interface Queue {}
5 changes: 5 additions & 0 deletions stubs/common/Contracts/Redis.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

namespace Illuminate\Contracts\Redis;

interface Factory {}
15 changes: 15 additions & 0 deletions stubs/common/Database/Database.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Illuminate\Database;

class Connection implements ConnectionInterface {}

interface ConnectionInterface {}

interface ConnectionResolverInterface {}

/**
* @mixin \Illuminate\Database\Connection
*/
class DatabaseManager implements ConnectionResolverInterface {}

6 changes: 5 additions & 1 deletion stubs/common/Log/Logger.stub
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ namespace Psr\Log {
interface LoggerInterface {}
}

namespace Illuminate\Log {
namespace Monolog {
interface ResettableInterface {}
class Logger implements \Psr\Log\LoggerInterface, \Monolog\ResettableInterface {}
}

namespace Illuminate\Log {
/**
* @mixin \Illuminate\Log\LogManager
* @mixin \Monolog\Logger
Expand Down
4 changes: 2 additions & 2 deletions stubs/common/Pagination.stub
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Illuminate\Pagination;
/**
* @template TValue
*
* @mixin \Illuminate\Support\Collection<mixed, TValue>
* @mixin \Illuminate\Support\Collection<array-key, TValue>
*/
abstract class AbstractPaginator implements \Illuminate\Contracts\Support\Htmlable
{
Expand Down Expand Up @@ -68,7 +68,7 @@ class LengthAwarePaginator extends AbstractPaginator implements \Illuminate\Cont
/**
* @template TValue
*
* @mixin \Illuminate\Support\Collection<mixed, TValue>
* @mixin \Illuminate\Support\Collection<array-key, TValue>
*/
abstract class AbstractCursorPaginator implements \Illuminate\Contracts\Support\Htmlable
{
Expand Down
10 changes: 10 additions & 0 deletions stubs/common/Queue/Queue.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Illuminate\Queue;

abstract class Queue {}

/**
* @mixin \Illuminate\Contracts\Queue\Queue
*/
class QueueManager implements \Illuminate\Contracts\Queue\Factory, \Illuminate\Contracts\Queue\Monitor {}
16 changes: 10 additions & 6 deletions stubs/common/Redis/Connection.stub
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<?php

namespace Illuminate\Redis\Connections;
namespace Illuminate\Redis {
class RedisManager implements \Illuminate\Contracts\Redis\Factory {}
}

namespace Illuminate\Redis\Connections {
/**
* @mixin \Redis
*/
abstract class Connection {}
}

/**
* @mixin \Redis
*/
abstract class Connection
{}
Loading