@@ -22,30 +22,30 @@ interface RendererInterface
22
22
* Builds the output based upon a file name and any
23
23
* data that has already been set.
24
24
*
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
29
29
*/
30
30
public function render (string $ view , ?array $ options = null , bool $ saveData = false ): string ;
31
31
32
32
/**
33
33
* Builds the output based upon a string and any
34
34
* data that has already been set.
35
35
*
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
41
41
*/
42
42
public function renderString (string $ view , ?array $ options = null , bool $ saveData = false ): string ;
43
43
44
44
/**
45
45
* Sets several pieces of view data at once.
46
46
*
47
- * @param string $context The context to escape it for: html, css, js, url
48
- * If 'raw', no escaping will happen
47
+ * @param non-empty- string|null $context The context to escape it for.
48
+ * If 'raw', no escaping will happen.
49
49
* @phpstan-param null|'html'|'js'|'css'|'url'|'attr'|'raw' $context
50
50
*
51
51
* @return RendererInterface
@@ -56,8 +56,8 @@ public function setData(array $data = [], ?string $context = null);
56
56
* Sets a single piece of view data.
57
57
*
58
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
59
+ * @param non-empty- string|null $context The context to escape it for.
60
+ * If 'raw', no escaping will happen.
61
61
* @phpstan-param null|'html'|'js'|'css'|'url'|'attr'|'raw' $context
62
62
*
63
63
* @return RendererInterface
0 commit comments