From 863cb55ee33998b0bdb824f4d7d4ffc1dd0a777a Mon Sep 17 00:00:00 2001 From: Kumi Date: Tue, 25 Jun 2024 18:10:19 +0200 Subject: [PATCH] fix: correct path to autoload file using __DIR__ constant Switched from relative path to using __DIR__ constant for requiring vendor/autoload.php. This ensures correct file inclusion regardless of the script's execution context, preventing potential loading issues. --- classes/core_jwt_manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/core_jwt_manager.php b/classes/core_jwt_manager.php index 290d3aa..69247ea 100644 --- a/classes/core_jwt_manager.php +++ b/classes/core_jwt_manager.php @@ -16,7 +16,7 @@ namespace auth_jwt; -require_once("../vendor/autoload.php"); +require_once(__DIR__ . '/../vendor/autoload.php'); use \Firebase\JWT\JWT;