From 9fe3c211d12cdf4a0dc99bd1e3f73be29185695e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20H=C3=A4u=C3=9Fler?= Date: Tue, 25 Nov 2025 16:08:48 +0100 Subject: [PATCH] [BUGFIX] Avoid calling deprecated reflection function `ReflectionProperty::setAccessible` has no effect since PHP 8.1 and is deprecated since PHP 8.5. We can safely remove it without any replacement. --- src/Plugin/Config.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Plugin/Config.php b/src/Plugin/Config.php index eb4322d..3ff234f 100644 --- a/src/Plugin/Config.php +++ b/src/Plugin/Config.php @@ -247,7 +247,6 @@ protected static function extractBaseDir(\Composer\Config $config) { $reflectionClass = new \ReflectionClass($config); $reflectionProperty = $reflectionClass->getProperty('baseDir'); - $reflectionProperty->setAccessible(true); return $reflectionProperty->getValue($config); } }