From cc7112fc246fd326aa75c59f4aaad7016397f47f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Tam=C3=A1s=20Szab=C3=B3?= <72586295+MadBox-99@users.noreply.github.com> Date: Wed, 8 Oct 2025 11:25:20 +0200 Subject: [PATCH] Fix return type order in view function signature in return documentation order is factory then ViewContract and IDE is showin diferent order this is so confusing when hower over the method --- src/Illuminate/Foundation/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/helpers.php b/src/Illuminate/Foundation/helpers.php index 7a3264c881d4..94ca5f84924b 100644 --- a/src/Illuminate/Foundation/helpers.php +++ b/src/Illuminate/Foundation/helpers.php @@ -1090,7 +1090,7 @@ function validator(?array $data = null, array $rules = [], array $messages = [], * @param array $mergeData * @return ($view is null ? \Illuminate\Contracts\View\Factory : \Illuminate\Contracts\View\View) */ - function view($view = null, $data = [], $mergeData = []): ViewContract|ViewFactory + function view($view = null, $data = [], $mergeData = []): ViewFactory|ViewContract { $factory = app(ViewFactory::class);