-
-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy path_ide_helper.php
More file actions
43 lines (37 loc) · 1.8 KB
/
Copy path_ide_helper.php
File metadata and controls
43 lines (37 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* IDE helper for the routing macros NativeServiceProvider registers at boot.
*
* Route::native() / Route::nativeGroup() / ->layout() are runtime macros, so
* static analysis ("Method 'native' not found in Illuminate\Routing\Router")
* can't see them. This file re-declares the host classes with the macro
* signatures in their docblocks; IDEs merge the declarations and resolve the
* calls. It is intentionally outside src/ — composer's autoloader (psr-4:
* src/) and phpstan (paths: src/) never touch it, so nothing here executes
* or double-declares at runtime.
*
* The filename matters: PhpStorm suppresses its "Multiple definitions exist
* for class" hint only for files named exactly _ide_helper.php (the
* convention barryvdh/laravel-ide-helper established).
*
* Keep the signatures in sync with the Route::macro(...) registrations in
* src/NativeServiceProvider.php.
*/
namespace Illuminate\Routing {
/**
* @method \Illuminate\Routing\Route native(string $uri, string $componentClass) Register a native screen route for a NativeComponent class
* @method void nativeGroup(string $layout, \Closure $routes) Register native routes that inherit the given layout unless they override it with ->layout()
*/
class Router {}
/**
* @method $this layout(string $layoutClass) Set the navigation layout (StackLayout, TabsLayout, …) for this native route
*/
class Route {}
}
namespace Illuminate\Support\Facades {
/**
* @method static \Illuminate\Routing\Route native(string $uri, string $componentClass) Register a native screen route for a NativeComponent class
* @method static void nativeGroup(string $layout, \Closure $routes) Register native routes that inherit the given layout unless they override it with ->layout()
*/
class Route {}
}