@@ -106,8 +106,8 @@ public function __construct(
106
106
int | string $ currentPage ,
107
107
int | string $ itemsPerPage ,
108
108
int $ totalItems ,
109
- Language $ language = null ,
110
- string $ url = null
109
+ ? Language $ language = null ,
110
+ ? string $ url = null
111
111
) {
112
112
if ($ language ) {
113
113
$ this ->setLanguage ($ language );
@@ -186,7 +186,7 @@ protected function setTotalItems(int $totalItems) : static
186
186
*
187
187
* @return static
188
188
*/
189
- public function setLanguage (Language $ language = null ) : static
189
+ public function setLanguage (? Language $ language = null ) : static
190
190
{
191
191
$ this ->language = $ language ?? new Language ();
192
192
$ this ->language ->addDirectory (__DIR__ . '/Languages ' );
@@ -286,7 +286,7 @@ public function getQuery() : string
286
286
*
287
287
* @return static
288
288
*/
289
- public function setAllowedQueries (array | null $ allowed ) : static
289
+ public function setAllowedQueries (? array $ allowed ) : static
290
290
{
291
291
$ this ->setUrl ($ this ->oldUrl , $ allowed );
292
292
return $ this ;
@@ -303,13 +303,13 @@ protected function prepareUrl() : static
303
303
}
304
304
305
305
/**
306
- * @param string| URL $currentPageUrl
306
+ * @param URL|string $currentPageUrl
307
307
* @param array<string>|null $allowedQueries List of queries, an empty array
308
308
* to allow only the default or null to allow all
309
309
*
310
310
* @return static
311
311
*/
312
- public function setUrl (string | URL $ currentPageUrl , array $ allowedQueries = null ) : static
312
+ public function setUrl (URL | string $ currentPageUrl , ? array $ allowedQueries = null ) : static
313
313
{
314
314
$ currentPageUrl = $ currentPageUrl instanceof URL
315
315
? clone $ currentPageUrl
@@ -529,7 +529,7 @@ public function getWithUrl() : array
529
529
*
530
530
* @return string
531
531
*/
532
- public function render (string $ view = null ) : string
532
+ public function render (? string $ view = null ) : string
533
533
{
534
534
$ filename = $ this ->getView ($ view ?? $ this ->getDefaultView ());
535
535
\ob_start ();
0 commit comments