@@ -17,21 +17,21 @@ class FileViewFinder implements ViewFinderInterface
17
17
/**
18
18
* The array of active view paths.
19
19
*
20
- * @var array
20
+ * @var string[]
21
21
*/
22
22
protected $ paths ;
23
23
24
24
/**
25
25
* The array of views that have been located.
26
26
*
27
- * @var array
27
+ * @var array<string, string>
28
28
*/
29
29
protected $ views = [];
30
30
31
31
/**
32
32
* The namespace to file path hints.
33
33
*
34
- * @var array
34
+ * @var array<string, array>
35
35
*/
36
36
protected $ hints = [];
37
37
@@ -46,8 +46,8 @@ class FileViewFinder implements ViewFinderInterface
46
46
* Create a new file view loader instance.
47
47
*
48
48
* @param \Illuminate\Filesystem\Filesystem $files
49
- * @param array $paths
50
- * @param array |null $extensions
49
+ * @param string[] $paths
50
+ * @param string[] |null $extensions
51
51
*/
52
52
public function __construct (Filesystem $ files , array $ paths , ?array $ extensions = null )
53
53
{
@@ -95,7 +95,7 @@ protected function findNamespacedView($name)
95
95
* Get the segments of a template with a named path.
96
96
*
97
97
* @param string $name
98
- * @return array
98
+ * @return string[]
99
99
*
100
100
* @throws \InvalidArgumentException
101
101
*/
@@ -118,7 +118,7 @@ protected function parseNamespaceSegments($name)
118
118
* Find the given view in the list of paths.
119
119
*
120
120
* @param string $name
121
- * @param array $paths
121
+ * @param string|string[] $paths
122
122
* @return string
123
123
*
124
124
* @throws \InvalidArgumentException
@@ -142,7 +142,7 @@ protected function findInPaths($name, $paths)
142
142
* Get an array of possible view files.
143
143
*
144
144
* @param string $name
145
- * @return array
145
+ * @return string[]
146
146
*/
147
147
protected function getPossibleViewFiles ($ name )
148
148
{
@@ -186,7 +186,7 @@ protected function resolvePath($path)
186
186
* Add a namespace hint to the finder.
187
187
*
188
188
* @param string $namespace
189
- * @param string|array $hints
189
+ * @param string|string[] $hints
190
190
* @return void
191
191
*/
192
192
public function addNamespace ($ namespace , $ hints )
@@ -204,7 +204,7 @@ public function addNamespace($namespace, $hints)
204
204
* Prepend a namespace hint to the finder.
205
205
*
206
206
* @param string $namespace
207
- * @param string|array $hints
207
+ * @param string|string[] $hints
208
208
* @return void
209
209
*/
210
210
public function prependNamespace ($ namespace , $ hints )
@@ -222,7 +222,7 @@ public function prependNamespace($namespace, $hints)
222
222
* Replace the namespace hints for the given namespace.
223
223
*
224
224
* @param string $namespace
225
- * @param string|array $hints
225
+ * @param string|string[] $hints
226
226
* @return void
227
227
*/
228
228
public function replaceNamespace ($ namespace , $ hints )
@@ -279,7 +279,7 @@ public function getFilesystem()
279
279
/**
280
280
* Set the active view paths.
281
281
*
282
- * @param array $paths
282
+ * @param string[] $paths
283
283
* @return $this
284
284
*/
285
285
public function setPaths ($ paths )
@@ -292,7 +292,7 @@ public function setPaths($paths)
292
292
/**
293
293
* Get the active view paths.
294
294
*
295
- * @return array
295
+ * @return string[]
296
296
*/
297
297
public function getPaths ()
298
298
{
@@ -302,7 +302,7 @@ public function getPaths()
302
302
/**
303
303
* Get the views that have been located.
304
304
*
305
- * @return array
305
+ * @return array<string, string>
306
306
*/
307
307
public function getViews ()
308
308
{
@@ -312,7 +312,7 @@ public function getViews()
312
312
/**
313
313
* Get the namespace to file path hints.
314
314
*
315
- * @return array
315
+ * @return array<string, array>
316
316
*/
317
317
public function getHints ()
318
318
{
@@ -322,7 +322,7 @@ public function getHints()
322
322
/**
323
323
* Get registered extensions.
324
324
*
325
- * @return array
325
+ * @return string[]
326
326
*/
327
327
public function getExtensions ()
328
328
{
0 commit comments