From c27bbdfbdca32c4333a3475bd5e9b7902383fa88 Mon Sep 17 00:00:00 2001 From: nkazarynava Date: Sun, 16 Apr 2023 21:42:35 +0200 Subject: [PATCH] Deprecations for PHP 8.1 (#61) Deprecations for PHP 8.1 get_class() and get_called_class() without argument --- tests/DrupalFinderTestBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/DrupalFinderTestBase.php b/tests/DrupalFinderTestBase.php index de706d4..d8c99a3 100644 --- a/tests/DrupalFinderTestBase.php +++ b/tests/DrupalFinderTestBase.php @@ -128,7 +128,7 @@ protected function tempdir($dir, $prefix = '', $mode = 0700) $path = $dir . $prefix . mt_rand(0, 9999999); } while (!mkdir($path, $mode)); register_shutdown_function( - [get_called_class(), 'tempdir_remove'], + [static::class, 'tempdir_remove'], $path );