Skip to content

Commit

Permalink
fix: remove types
Browse files Browse the repository at this point in the history
  • Loading branch information
vittorfigueiredo committed Mar 2, 2024
1 parent 6f679b1 commit bf6d71b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

abstract class controller
{
protected static function view(string $view, array $data = []): void
protected static function view(string $view, array $data = [])
{
$viewPath = dirname(__FILE__, 2) . "/views";

Expand Down
4 changes: 2 additions & 2 deletions app/routes/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Router
{
const CONTROLLER_NAMESPACE = "app\\controllers";

public static function load(string $controller, string $method): void
public static function load(string $controller, string $method)
{
try {
$controllerNamespace = self::CONTROLLER_NAMESPACE . "\\" . $controller;
Expand Down Expand Up @@ -49,7 +49,7 @@ public static function routes(): array
];
}

public static function execute(): mixed
public static function execute()
{
try {
$routes = self::routes();
Expand Down

0 comments on commit bf6d71b

Please sign in to comment.