Skip to content

Commit cefbf21

Browse files
authored
Fix return type order in view function signature (#57304)
in return documentation order is factory then ViewContract and IDE is showin diferent order this is so confusing when hower over the method
1 parent c971f6e commit cefbf21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ function validator(?array $data = null, array $rules = [], array $messages = [],
10901090
* @param array $mergeData
10911091
* @return ($view is null ? \Illuminate\Contracts\View\Factory : \Illuminate\Contracts\View\View)
10921092
*/
1093-
function view($view = null, $data = [], $mergeData = []): ViewContract|ViewFactory
1093+
function view($view = null, $data = [], $mergeData = []): ViewFactory|ViewContract
10941094
{
10951095
$factory = app(ViewFactory::class);
10961096

0 commit comments

Comments
 (0)