Skip to content

Commit

Permalink
Merge pull request #11 from calebdw/fix_static_tests
Browse files Browse the repository at this point in the history
Fix static tests
  • Loading branch information
calebdw authored Sep 4, 2024
2 parents 00b4a56 + e0f9b37 commit 9441cc8
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 11 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"illuminate/pipeline": "^9.52.16 || ^10.28.0 || ^11.16.0",
"illuminate/support": "^9.52.16 || ^10.28.0 || ^11.16.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
{}

0 comments on commit 9441cc8

Please sign in to comment.