Skip to content

Commit

Permalink
chore: update facades to use @mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
calebdw committed Jun 29, 2024
1 parent 11b52ab commit 46297e4
Show file tree
Hide file tree
Showing 41 changed files with 53 additions and 54 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/stubs/facade.stub
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace DummyNamespace;
use Illuminate\Support\Facades\Facade;

/**
* @see \DummyTarget
* @mixin \DummyTarget
*/
class DummyClass extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
* @method static bool hasMacro(string $name)
* @method static void flushMacros()
*
* @see \Illuminate\Foundation\Application
* @mixin \Illuminate\Foundation\Application
*/
class App extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Artisan.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @method static \Illuminate\Foundation\Console\Kernel addCommandPaths(array $paths)
* @method static \Illuminate\Foundation\Console\Kernel addCommandRoutePaths(array $paths)
*
* @see \Illuminate\Foundation\Console\Kernel
* @mixin \Illuminate\Foundation\Console\Kernel
*/
class Artisan extends Facade
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Support/Facades/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
* @method static bool hasMacro(string $name)
* @method static void flushMacros()
*
* @see \Illuminate\Auth\AuthManager
* @see \Illuminate\Auth\SessionGuard
* @mixin \Illuminate\Auth\AuthManager
* @mixin \Illuminate\Auth\SessionGuard
*/
class Auth extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
* @method static string compileEchos(string $value)
* @method static string applyEchoHandler(string $value)
*
* @see \Illuminate\View\Compilers\BladeCompiler
* @mixin \Illuminate\View\Compilers\BladeCompiler
*/
class Blade extends Facade
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Support/Facades/Broadcast.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
* @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(\Illuminate\Contracts\Broadcasting\HasBroadcastChannel|string $channel, callable|string $callback, array $options = [])
* @method static \Illuminate\Support\Collection getChannels()
*
* @see \Illuminate\Broadcasting\BroadcastManager
* @see \Illuminate\Broadcasting\Broadcasters\Broadcaster
* @mixin \Illuminate\Broadcasting\BroadcastManager
* @mixin \Illuminate\Broadcasting\Broadcasters\Broadcaster
*/
class Broadcast extends Facade
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Support/Facades/Bus.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
* @method static \Illuminate\Bus\Batch recordPendingBatch(\Illuminate\Bus\PendingBatch $pendingBatch)
* @method static \Illuminate\Support\Testing\Fakes\BusFake serializeAndRestore(bool $serializeAndRestore = true)
*
* @see \Illuminate\Bus\Dispatcher
* @see \Illuminate\Support\Testing\Fakes\BusFake
* @mixin \Illuminate\Bus\Dispatcher
* @mixin \Illuminate\Support\Testing\Fakes\BusFake
*/
class Bus extends Facade
{
Expand Down
3 changes: 1 addition & 2 deletions src/Illuminate/Support/Facades/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
* @method static \Illuminate\Contracts\Cache\Lock lock(string $name, int $seconds = 0, string|null $owner = null)
* @method static \Illuminate\Contracts\Cache\Lock restoreLock(string $name, string $owner)
*
* @see \Illuminate\Cache\CacheManager
*
* @mixin \Illuminate\Cache\CacheManager
* @mixin \Illuminate\Cache\Repository
*/
class Cache extends Facade
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @method static bool hasMacro(string $name)
* @method static void flushMacros()
*
* @see \Illuminate\Config\Repository
* @mixin \Illuminate\Config\Repository
*/
class Config extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @method static bool hasMacro(string $name)
* @method static void flushMacros()
*
* @see \Illuminate\Cookie\CookieJar
* @mixin \Illuminate\Cookie\CookieJar
*/
class Cookie extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Crypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @method static array getPreviousKeys()
* @method static \Illuminate\Encryption\Encrypter previousKeys(array $keys)
*
* @see \Illuminate\Encryption\Encrypter
* @mixin \Illuminate\Encryption\Encrypter
*/
class Crypt extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/DB.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
* @method static int transactionLevel()
* @method static void afterCommit(callable $callback)
*
* @see \Illuminate\Database\DatabaseManager
* @mixin \Illuminate\Database\DatabaseManager
*/
class DB extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
* @method static void useYearsOverflow($yearsOverflow = true)
* @method static \Illuminate\Support\Carbon yesterday($tz = null)
*
* @see \Illuminate\Support\DateFactory
* @mixin \Illuminate\Support\DateFactory
*/
class Date extends Facade
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Support/Facades/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
* @method static bool hasDispatched(string $event)
* @method static array dispatchedEvents()
*
* @see \Illuminate\Events\Dispatcher
* @see \Illuminate\Support\Testing\Fakes\EventFake
* @mixin \Illuminate\Events\Dispatcher
* @mixin \Illuminate\Support\Testing\Fakes\EventFake
*/
class Event extends Facade
{
Expand Down
6 changes: 3 additions & 3 deletions src/Illuminate/Support/Facades/Exceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
* @method static \Illuminate\Support\Testing\Fakes\ExceptionHandlerFake throwFirstReported()
* @method static \Illuminate\Support\Testing\Fakes\ExceptionHandlerFake setHandler(\Illuminate\Contracts\Debug\ExceptionHandler $handler)
*
* @see \Illuminate\Foundation\Exceptions\Handler
* @see \Illuminate\Contracts\Debug\ExceptionHandler
* @see \Illuminate\Support\Testing\Fakes\ExceptionHandlerFake
* @mixin \Illuminate\Foundation\Exceptions\Handler
* @mixin \Illuminate\Contracts\Debug\ExceptionHandler
* @mixin \Illuminate\Support\Testing\Fakes\ExceptionHandlerFake
*/
class Exceptions extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
* @method static bool hasMacro(string $name)
* @method static void flushMacros()
*
* @see \Illuminate\Filesystem\Filesystem
* @mixin \Illuminate\Filesystem\Filesystem
*/
class File extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Gate.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @method static \Illuminate\Auth\Access\Response denyWithStatus(int $status, string|null $message = null, int|null $code = null)
* @method static \Illuminate\Auth\Access\Response denyAsNotFound(string|null $message = null, int|null $code = null)
*
* @see \Illuminate\Auth\Access\Gate
* @mixin \Illuminate\Auth\Access\Gate
*/
class Gate extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
* @method static \Illuminate\Http\Client\PendingRequest|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
* @method static \Illuminate\Http\Client\PendingRequest|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
*
* @see \Illuminate\Http\Client\Factory
* @mixin \Illuminate\Http\Client\Factory
*/
class Http extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @method static bool hasMacro(string $name)
* @method static void flushMacros()
*
* @see \Illuminate\Translation\Translator
* @mixin \Illuminate\Translation\Translator
*/
class Lang extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @method static \Illuminate\Log\Logger|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
* @method static \Illuminate\Log\Logger|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
*
* @see \Illuminate\Log\LogManager
* @mixin \Illuminate\Log\LogManager
*/
class Log extends Facade
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Support/Facades/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
* @method static \Illuminate\Support\Collection queued(string|\Closure $mailable, callable|null $callback = null)
* @method static bool hasQueued(string $mailable)
*
* @see \Illuminate\Mail\MailManager
* @see \Illuminate\Support\Testing\Fakes\MailFake
* @mixin \Illuminate\Mail\MailManager
* @mixin \Illuminate\Support\Testing\Fakes\MailFake
*/
class Mail extends Facade
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Support/Facades/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
* @method static bool hasMacro(string $name)
* @method static void flushMacros()
*
* @see \Illuminate\Notifications\ChannelManager
* @see \Illuminate\Support\Testing\Fakes\NotificationFake
* @mixin \Illuminate\Notifications\ChannelManager
* @mixin \Illuminate\Support\Testing\Fakes\NotificationFake
*/
class Notification extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/ParallelTesting.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @method static mixed option(string $option)
* @method static string|false token()
*
* @see \Illuminate\Testing\ParallelTesting
* @mixin \Illuminate\Testing\ParallelTesting
*/
class ParallelTesting extends Facade
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Support/Facades/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* @method static bool tokenExists(\Illuminate\Contracts\Auth\CanResetPassword $user, string $token)
* @method static \Illuminate\Auth\Passwords\TokenRepositoryInterface getRepository()
*
* @see \Illuminate\Auth\Passwords\PasswordBrokerManager
* @see \Illuminate\Auth\Passwords\PasswordBroker
* @mixin \Illuminate\Auth\Passwords\PasswordBrokerManager
* @mixin \Illuminate\Auth\Passwords\PasswordBroker
*/
class Password extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Pipeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @method static \Illuminate\Pipeline\Pipeline|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
* @method static \Illuminate\Pipeline\Pipeline|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
*
* @see \Illuminate\Pipeline\Pipeline
* @mixin \Illuminate\Pipeline\Pipeline
*/
class Pipeline extends Facade
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Support/Facades/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
* @method static void flushMacros()
* @method static mixed macroCall(string $method, array $parameters)
*
* @see \Illuminate\Process\PendingProcess
* @see \Illuminate\Process\Factory
* @mixin \Illuminate\Process\PendingProcess
* @mixin \Illuminate\Process\Factory
*/
class Process extends Facade
{
Expand Down
6 changes: 3 additions & 3 deletions src/Illuminate/Support/Facades/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
* @method static array pushedJobs()
* @method static \Illuminate\Support\Testing\Fakes\QueueFake serializeAndRestore(bool $serializeAndRestore = true)
*
* @see \Illuminate\Queue\QueueManager
* @see \Illuminate\Queue\Queue
* @see \Illuminate\Support\Testing\Fakes\QueueFake
* @mixin \Illuminate\Queue\QueueManager
* @mixin \Illuminate\Queue\Queue
* @mixin \Illuminate\Support\Testing\Fakes\QueueFake
*/
class Queue extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/RateLimiter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @method static int availableIn(string $key)
* @method static string cleanRateLimiterKey(string $key)
*
* @see \Illuminate\Cache\RateLimiter
* @mixin \Illuminate\Cache\RateLimiter
*/
class RateLimiter extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @method static bool hasMacro(string $name)
* @method static void flushMacros()
*
* @see \Illuminate\Routing\Redirector
* @mixin \Illuminate\Routing\Redirector
*/
class Redirect extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @method static void flushMacros()
* @method static mixed macroCall(string $method, array $parameters)
*
* @see \Illuminate\Redis\RedisManager
* @mixin \Illuminate\Redis\RedisManager
*/
class Redis extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
* @method static array validateWithBag(string $errorBag, array $rules, ...$params)
* @method static bool hasValidSignature(bool $absolute = true)
*
* @see \Illuminate\Http\Request
* @mixin \Illuminate\Http\Request
*/
class Request extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* @method static bool hasMacro(string $name)
* @method static void flushMacros()
*
* @see \Illuminate\Routing\ResponseFactory
* @mixin \Illuminate\Routing\ResponseFactory
*/
class Response extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
* @method static \Illuminate\Routing\RouteRegistrar withoutMiddleware(array|string $middleware)
* @method static \Illuminate\Routing\RouteRegistrar withoutScopedBindings()
*
* @see \Illuminate\Routing\Router
* @mixin \Illuminate\Routing\Router
*/
class Route extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @method static bool hasMacro(string $name)
* @method static void flushMacros()
*
* @see \Illuminate\Console\Scheduling\Schedule
* @mixin \Illuminate\Console\Scheduling\Schedule
*/
class Schedule extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* @method static bool hasMacro(string $name)
* @method static void flushMacros()
*
* @see \Illuminate\Database\Schema\Builder
* @mixin \Illuminate\Database\Schema\Builder
*/
class Schema extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
* @method static bool hasMacro(string $name)
* @method static void flushMacros()
*
* @see \Illuminate\Session\SessionManager
* @mixin \Illuminate\Session\SessionManager
*/
class Session extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
* @method static void write(string $location, string $contents, array $config = [])
* @method static void createDirectory(string $location, array $config = [])
*
* @see \Illuminate\Filesystem\FilesystemManager
* @mixin \Illuminate\Filesystem\FilesystemManager
*/
class Storage extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/URL.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* @method static bool hasMacro(string $name)
* @method static void flushMacros()
*
* @see \Illuminate\Routing\UrlGenerator
* @mixin \Illuminate\Routing\UrlGenerator
*/
class URL extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @method static \Illuminate\Contracts\Container\Container|null getContainer()
* @method static \Illuminate\Validation\Factory setContainer(\Illuminate\Contracts\Container\Container $container)
*
* @see \Illuminate\Validation\Factory
* @mixin \Illuminate\Validation\Factory
*/
class Validator extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
* @method static void startTranslation(array $replacements = [])
* @method static string renderTranslation()
*
* @see \Illuminate\View\Factory
* @mixin \Illuminate\View\Factory
*/
class View extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Vite.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @method static bool hasMacro(string $name)
* @method static void flushMacros()
*
* @see \Illuminate\Foundation\Vite
* @mixin \Illuminate\Foundation\Vite
*/
class Vite extends Facade
{
Expand Down

0 comments on commit 46297e4

Please sign in to comment.