From e999a09337165b3646ccadd93693d2892287d474 Mon Sep 17 00:00:00 2001 From: Maarten Kuiper Date: Wed, 3 Dec 2025 22:23:05 +0100 Subject: [PATCH] Fix deprecation warning for setAccessible on php 8.5 This method is no longer needed as of php8.1 and deprecated since 8.5. Cakephp 5 requires at least php 8.1, so this can be removed safely. --- src/Panel/MailPanel.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Panel/MailPanel.php b/src/Panel/MailPanel.php index 609f1c31..c44a4f79 100644 --- a/src/Panel/MailPanel.php +++ b/src/Panel/MailPanel.php @@ -42,7 +42,6 @@ public function initialize(): void { $reflection = new ReflectionClass(TransportFactory::class); $property = $reflection->getProperty('_config'); - $property->setAccessible(true); /** @var array<\Cake\Mailer\AbstractTransport|array> $configs */ $configs = $property->getValue();