Skip to content

Commit e999a09

Browse files
authored
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.
1 parent 7221213 commit e999a09

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Panel/MailPanel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public function initialize(): void
4242
{
4343
$reflection = new ReflectionClass(TransportFactory::class);
4444
$property = $reflection->getProperty('_config');
45-
$property->setAccessible(true);
4645
/** @var array<\Cake\Mailer\AbstractTransport|array> $configs */
4746
$configs = $property->getValue();
4847

0 commit comments

Comments
 (0)