From fab7be0b179f3790623428dd9cbfa26b04b80fbf Mon Sep 17 00:00:00 2001 From: Igor Tarasov Date: Fri, 13 Dec 2019 16:47:37 +0300 Subject: [PATCH] Fix deprecation in PHP 7.4 PHP 7.4 deprecates reversed order of arguments for implode function. This fixes deprecation notice. --- ActiveRecord.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ActiveRecord.php b/ActiveRecord.php index 084587547..14b244154 100644 --- a/ActiveRecord.php +++ b/ActiveRecord.php @@ -40,11 +40,11 @@ function activerecord_autoload($class_name) foreach ($namespaces as $directory) $directories[] = $directory; - $root .= DIRECTORY_SEPARATOR . implode($directories, DIRECTORY_SEPARATOR); + $root .= DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, $directories); } $file = "$root/$class_name.php"; if (file_exists($file)) require_once $file; -} \ No newline at end of file +}