Skip to content

[8.x] Add some missing phpDocs for facades #34352

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

Merged
merged 1 commit into from
Sep 15, 2020
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: 2 additions & 0 deletions src/Illuminate/Support/Facades/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* @method static void log($level, string $message, array $context = [])
* @method static void notice(string $message, array $context = [])
* @method static void warning(string $message, array $context = [])
* @method static void write(string $level, string $message, array $context = [])
* @method static void listen(\Closure $callback)
*
* @see \Illuminate\Log\Logger
*/
Expand Down
4 changes: 4 additions & 0 deletions src/Illuminate/Support/Facades/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@
* @method static bool hasQueued(string $mailable)
* @method static bool hasSent(string $mailable)
* @method static mixed later(\DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable|string|array $view, string $queue = null)
* @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable|string|array $view)
* @method static mixed queue(\Illuminate\Contracts\Mail\Mailable|string|array $view, string $queue = null)
* @method static mixed queueOn(string $queue, \Illuminate\Contracts\Mail\Mailable|string|array $view)
* @method static void assertNotQueued(string $mailable, callable $callback = null)
* @method static void assertNotSent(string $mailable, callable|int $callback = null)
* @method static void assertNothingQueued()
* @method static void assertNothingSent()
* @method static void assertQueued(string $mailable, callable|int $callback = null)
* @method static void assertSent(string $mailable, callable|int $callback = null)
* @method static void raw(string $text, $callback)
* @method static void plain(string $view, array $data, $callback)
* @method static void html(string $html, $callback)
* @method static void send(\Illuminate\Contracts\Mail\Mailable|string|array $view, array $data = [], \Closure|string $callback = null)
*
* @see \Illuminate\Mail\Mailer
Expand Down
1 change: 1 addition & 0 deletions src/Illuminate/Support/Facades/Redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* @method static \Illuminate\Http\RedirectResponse to(string $path, int $status = 302, array $headers = [], bool $secure = null)
* @method static \Illuminate\Routing\UrlGenerator getUrlGenerator()
* @method static void setSession(\Illuminate\Session\Store $session)
* @method static void setIntendedUrl(string $url)
*
* @see \Illuminate\Routing\Redirector
*/
Expand Down
4 changes: 4 additions & 0 deletions src/Illuminate/Support/Facades/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
* @method static void pattern(string $key, string $pattern)
* @method static void resources(array $resources)
* @method static void substituteImplicitBindings(\Illuminate\Support\Facades\Route $route)
* @method static boolean uses(...$patterns)
* @method static boolean is(...$patterns)
* @method static boolean has(string $name)
* @method static mixed input(string $key, string|null $default = null)
*
* @see \Illuminate\Routing\Router
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Illuminate/Support/Facades/URL.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @method static bool hasValidSignature(\Illuminate\Http\Request $request, bool $absolute = true)
* @method static string action(string $action, $parameters = [], bool $absolute = true)
* @method static string asset(string $path, bool $secure = null)
* @method static string secureAsset(string $path)
* @method static string current()
* @method static string full()
* @method static string previous($fallback = false)
Expand All @@ -17,6 +18,7 @@
* @method static string to(string $path, $extra = [], bool $secure = null)
* @method static void defaults(array $defaults)
* @method static void forceScheme(string $scheme)
* @method static bool isValidUrl(string $path)
*
* @see \Illuminate\Routing\UrlGenerator
*/
Expand Down
1 change: 1 addition & 0 deletions src/Illuminate/Support/Facades/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @method static void extend(string $rule, \Closure|string $extension, string $message = null)
* @method static void extendImplicit(string $rule, \Closure|string $extension, string $message = null)
* @method static void replacer(string $rule, \Closure|string $replacer)
* @method static array validate(array $data, array $rules, array $messages = [], array $customAttributes = [])
*
* @see \Illuminate\Validation\Factory
*/
Expand Down