We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c366ca commit e20fab5Copy full SHA for e20fab5
3 files changed
app/Controllers/HomeController.php
@@ -4,7 +4,9 @@
4
5
namespace App\Controllers;
6
7
-class HomeController extends Controller
+use App\Controllers\BaseController;
8
+
9
+class HomeController extends BaseController
10
{
11
public function index(): string
12
app/Helpers/View.php
@@ -1,6 +1,6 @@
1
<?php
2
3
-function view($file, $data = [])
+function view(string $file): string
if (file_exists($file)) {
require_once $file;
app/Models/BaseModel.php
@@ -6,5 +6,5 @@
class BaseModel
- protected $table = '';
+ protected string $table = '';
}
0 commit comments