From 23ba48c71f0d41bbe012d668349f6516dad527b4 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Fri, 5 Sep 2025 09:56:46 -0400 Subject: Change how files are included (#7916) 1. `include`, `include_once`, `require` and `require_once` are expressions not functions, parentheses are not necessary. 2. to move up the directory tree, it's better to use the `dirname` function instead of relying on `/..`. --- tests/app/Models/SearchTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/app') diff --git a/tests/app/Models/SearchTest.php b/tests/app/Models/SearchTest.php index 8b4c9d2b5..e6efdbe55 100644 --- a/tests/app/Models/SearchTest.php +++ b/tests/app/Models/SearchTest.php @@ -3,7 +3,7 @@ declare(strict_types=1); use PHPUnit\Framework\Attributes\DataProvider; -require_once(LIB_PATH . '/lib_date.php'); +require_once LIB_PATH . '/lib_date.php'; class SearchTest extends PHPUnit\Framework\TestCase { -- cgit v1.2.3