Skip to content

Commit 28721e7

Browse files
committed
docs: add missing null to @param
1 parent 3d058b1 commit 28721e7

1 file changed

Lines changed: 14 additions & 16 deletions

File tree

system/View/RendererInterface.php

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,30 @@ interface RendererInterface
2222
* Builds the output based upon a file name and any
2323
* data that has already been set.
2424
*
25-
* @param array $options Reserved for 3rd-party uses since
26-
* it might be needed to pass additional info
27-
* to other template engines.
28-
* @param bool $saveData Whether to save data for subsequent calls
25+
* @param array|null $options Reserved for 3rd-party uses since
26+
* it might be needed to pass additional info
27+
* to other template engines.
28+
* @param bool $saveData Whether to save data for subsequent calls
2929
*/
3030
public function render(string $view, ?array $options = null, bool $saveData = false): string;
3131

3232
/**
3333
* Builds the output based upon a string and any
3434
* data that has already been set.
3535
*
36-
* @param string $view The view contents
37-
* @param array $options Reserved for 3rd-party uses since
38-
* it might be needed to pass additional info
39-
* to other template engines.
40-
* @param bool $saveData Whether to save data for subsequent calls
36+
* @param string $view The view contents
37+
* @param array|null $options Reserved for 3rd-party uses since
38+
* it might be needed to pass additional info
39+
* to other template engines.
40+
* @param bool $saveData Whether to save data for subsequent calls
4141
*/
4242
public function renderString(string $view, ?array $options = null, bool $saveData = false): string;
4343

4444
/**
4545
* Sets several pieces of view data at once.
4646
*
47-
* @param string $context The context to escape it for: html, css, js, url
48-
* If 'raw', no escaping will happen
49-
* @phpstan-param null|'html'|'js'|'css'|'url'|'attr'|'raw' $context
47+
* @param string|null $context The context to escape it for: html, css, js, url
48+
* If 'raw', no escaping will happen
5049
*
5150
* @return RendererInterface
5251
*/
@@ -55,10 +54,9 @@ public function setData(array $data = [], ?string $context = null);
5554
/**
5655
* Sets a single piece of view data.
5756
*
58-
* @param mixed $value
59-
* @param string $context The context to escape it for: html, css, js, url
60-
* If 'raw' no escaping will happen
61-
* @phpstan-param null|'html'|'js'|'css'|'url'|'attr'|'raw' $context
57+
* @param mixed $value
58+
* @param string|null $context The context to escape it for: html, css, js, url
59+
* If 'raw' no escaping will happen
6260
*
6361
* @return RendererInterface
6462
*/

0 commit comments

Comments
 (0)