@@ -22,30 +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
47+ * @param non-empty- string|null $context The context to escape it for.
48+ * If 'raw', no escaping will happen.
4949 * @phpstan-param null|'html'|'js'|'css'|'url'|'attr'|'raw' $context
5050 *
5151 * @return RendererInterface
@@ -56,8 +56,8 @@ public function setData(array $data = [], ?string $context = null);
5656 * Sets a single piece of view data.
5757 *
5858 * @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.
6161 * @phpstan-param null|'html'|'js'|'css'|'url'|'attr'|'raw' $context
6262 *
6363 * @return RendererInterface
0 commit comments