From f7e35dee68f0d5c6ae8b188e897833afc47736ef Mon Sep 17 00:00:00 2001 From: Sieciech Date: Fri, 26 Feb 2021 22:04:06 +0100 Subject: [PATCH] c --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 25a26dc..7e266d9 100644 --- a/index.php +++ b/index.php @@ -15,7 +15,7 @@ class BaseModel { } public static function Get(int $id) { - return __CLASS__; + return self::class; $stmt = $pdo->prepare('SELECT id, name FROM users WHERE id=?'); $stmt->execute([$id]); return $stmt->fetchObject(__CLASS__);