Skip to content

Commit 7f8ac4f

Browse files
authored
add some missing phpDocs for facades (#34352)
1 parent 93e3d57 commit 7f8ac4f

File tree

6 files changed

+14
-0
lines changed

6 files changed

+14
-0
lines changed

src/Illuminate/Support/Facades/Log.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* @method static void log($level, string $message, array $context = [])
1515
* @method static void notice(string $message, array $context = [])
1616
* @method static void warning(string $message, array $context = [])
17+
* @method static void write(string $level, string $message, array $context = [])
18+
* @method static void listen(\Closure $callback)
1719
*
1820
* @see \Illuminate\Log\Logger
1921
*/

src/Illuminate/Support/Facades/Mail.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,18 @@
1414
* @method static bool hasQueued(string $mailable)
1515
* @method static bool hasSent(string $mailable)
1616
* @method static mixed later(\DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable|string|array $view, string $queue = null)
17+
* @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable|string|array $view)
1718
* @method static mixed queue(\Illuminate\Contracts\Mail\Mailable|string|array $view, string $queue = null)
19+
* @method static mixed queueOn(string $queue, \Illuminate\Contracts\Mail\Mailable|string|array $view)
1820
* @method static void assertNotQueued(string $mailable, callable $callback = null)
1921
* @method static void assertNotSent(string $mailable, callable|int $callback = null)
2022
* @method static void assertNothingQueued()
2123
* @method static void assertNothingSent()
2224
* @method static void assertQueued(string $mailable, callable|int $callback = null)
2325
* @method static void assertSent(string $mailable, callable|int $callback = null)
2426
* @method static void raw(string $text, $callback)
27+
* @method static void plain(string $view, array $data, $callback)
28+
* @method static void html(string $html, $callback)
2529
* @method static void send(\Illuminate\Contracts\Mail\Mailable|string|array $view, array $data = [], \Closure|string $callback = null)
2630
*
2731
* @see \Illuminate\Mail\Mailer

src/Illuminate/Support/Facades/Redirect.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* @method static \Illuminate\Http\RedirectResponse to(string $path, int $status = 302, array $headers = [], bool $secure = null)
1818
* @method static \Illuminate\Routing\UrlGenerator getUrlGenerator()
1919
* @method static void setSession(\Illuminate\Session\Store $session)
20+
* @method static void setIntendedUrl(string $url)
2021
*
2122
* @see \Illuminate\Routing\Redirector
2223
*/

src/Illuminate/Support/Facades/Route.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
* @method static void pattern(string $key, string $pattern)
3737
* @method static void resources(array $resources)
3838
* @method static void substituteImplicitBindings(\Illuminate\Support\Facades\Route $route)
39+
* @method static boolean uses(...$patterns)
40+
* @method static boolean is(...$patterns)
41+
* @method static boolean has(string $name)
42+
* @method static mixed input(string $key, string|null $default = null)
3943
*
4044
* @see \Illuminate\Routing\Router
4145
*/

src/Illuminate/Support/Facades/URL.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @method static bool hasValidSignature(\Illuminate\Http\Request $request, bool $absolute = true)
88
* @method static string action(string $action, $parameters = [], bool $absolute = true)
99
* @method static string asset(string $path, bool $secure = null)
10+
* @method static string secureAsset(string $path)
1011
* @method static string current()
1112
* @method static string full()
1213
* @method static string previous($fallback = false)
@@ -17,6 +18,7 @@
1718
* @method static string to(string $path, $extra = [], bool $secure = null)
1819
* @method static void defaults(array $defaults)
1920
* @method static void forceScheme(string $scheme)
21+
* @method static bool isValidUrl(string $path)
2022
*
2123
* @see \Illuminate\Routing\UrlGenerator
2224
*/

src/Illuminate/Support/Facades/Validator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @method static void extend(string $rule, \Closure|string $extension, string $message = null)
88
* @method static void extendImplicit(string $rule, \Closure|string $extension, string $message = null)
99
* @method static void replacer(string $rule, \Closure|string $replacer)
10+
* @method static array validate(array $data, array $rules, array $messages = [], array $customAttributes = [])
1011
*
1112
* @see \Illuminate\Validation\Factory
1213
*/

0 commit comments

Comments
 (0)