1 | <?php |
||
8 | class FlareServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Array of Flare Service Providers to be Registered. |
||
12 | * |
||
13 | * @var array |
||
14 | */ |
||
15 | protected $serviceProviders = [ |
||
16 | \LaravelFlare\Flare\Providers\AuthServiceProvider::class, |
||
17 | \LaravelFlare\Flare\Providers\ArtisanServiceProvider::class, |
||
18 | \LaravelFlare\Flare\Providers\EventServiceProvider::class, |
||
19 | \LaravelFlare\Flare\Providers\CompatibilityServiceProvider::class, |
||
20 | |||
21 | // External Components |
||
22 | \LaravelFlare\Fields\FieldServiceProvider::class, |
||
23 | ]; |
||
24 | |||
25 | /** |
||
26 | * Array of Flare assets and where they should be published to. |
||
27 | * |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $assets = [ |
||
31 | 'public/flare' => 'public/vendor/flare', |
||
32 | 'public/AdminLTE/dist' => 'public/vendor/flare', |
||
33 | 'public/AdminLTE/plugins' => 'public/vendor/flare/plugins', |
||
34 | 'public/AdminLTE/bootstrap' => 'public/vendor/flare/bootstrap', |
||
35 | ]; |
||
36 | |||
37 | /** |
||
38 | * Create a new service provider instance. |
||
39 | * |
||
40 | * @param \Illuminate\Contracts\Foundation\Application $app |
||
41 | */ |
||
42 | public function __construct($app) |
||
50 | |||
51 | /** |
||
52 | * Perform post-registration booting of services. |
||
53 | */ |
||
54 | public function boot() |
||
61 | |||
62 | /** |
||
63 | * Register any package services. |
||
64 | */ |
||
65 | public function register() |
||
71 | |||
72 | /** |
||
73 | * Register the Flare Facade. |
||
74 | */ |
||
75 | protected function registerFlareFacade() |
||
79 | |||
80 | /** |
||
81 | * Register Service Providers. |
||
82 | */ |
||
83 | protected function registerServiceProviders() |
||
89 | |||
90 | /** |
||
91 | * Register the Flare Bindings. |
||
92 | */ |
||
93 | protected function registerBindings() |
||
100 | |||
101 | /** |
||
102 | * Publishes the Flare Assets to the appropriate directories. |
||
103 | */ |
||
104 | protected function publishAssets() |
||
114 | |||
115 | /** |
||
116 | * Publishes the Flare Config File. |
||
117 | */ |
||
118 | protected function publishConfig() |
||
124 | |||
125 | /** |
||
126 | * Publishes the Flare Database Migrations. |
||
127 | */ |
||
128 | protected function publishMigrations() |
||
134 | |||
135 | /** |
||
136 | * Publishes the Flare Views and defines the location |
||
137 | * they should be looked for in the application. |
||
138 | */ |
||
139 | protected function publishViews() |
||
146 | |||
147 | /** |
||
148 | * Returns the path to a provided file within the Flare package. |
||
149 | * |
||
150 | * @param bool $fiepath |
||
151 | * |
||
152 | * @return string |
||
153 | */ |
||
154 | private function basePath($filepath = false) |
||
158 | } |
||
159 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: