@@ -132,7 +132,7 @@ public function makeView(string $view): string
132132 /**
133133 * Renders supplied contents inside a layout.
134134 */
135- public function makeViewContent (string $ contents , string $ layout = null ): string
135+ public function makeViewContent (string $ contents , ? string $ layout = null ): string
136136 {
137137 if ($ this ->suppressLayout || $ this ->layout == '' ) {
138138 return $ contents ;
@@ -148,7 +148,7 @@ public function makeViewContent(string $contents, string $layout = null): string
148148 * Render a layout, defaulting to the layout propery specified on the class
149149 * @return string|bool The layout contents, or false.
150150 */
151- public function makeLayout (string $ name = null , array $ params = [], bool $ throwException = true ): string |bool
151+ public function makeLayout (? string $ name = null , array $ params = [], bool $ throwException = true ): string |bool
152152 {
153153 $ layout = $ name ?? $ this ->layout ;
154154 if ($ layout == '' ) {
@@ -188,7 +188,7 @@ public function makeLayoutPartial(string $partial, array $params = []): string
188188 *
189189 * If the fileName cannot be found it will be returned unmodified.
190190 */
191- public function getViewPath (string $ fileName , string |array $ viewPaths = null ): string
191+ public function getViewPath (string $ fileName , string |array | null $ viewPaths = null ): string
192192 {
193193 $ input = $ fileName ;
194194 $ allowedExtensions = ['php ' , 'htm ' ];
0 commit comments