Migrate to strong typed (compatible only with PHP 7.0+).

This commit is contained in:
kj
2022-03-17 17:22:04 -04:00
parent 503efef448
commit f43028d72d
4 changed files with 120 additions and 71 deletions

View File

@ -25,7 +25,7 @@ class View {
* @param string $viewPath
* (opcional) Ruta donde se encuentra la vista. En caso de que la vista no se encuentre en esa ruta, se usará la ruta por defecto "src/Views/".
*/
public static function render($viewName, $params = [], $viewPath = null) {
public static function render(string $viewName, array $params = [], string $viewPath = null) {
$view = new Neuron($params);
unset($params);