Skip to content

Remove setAccessible call for MimePart property#45

Merged
hrach merged 1 commit into
nextras:masterfrom
Ciki:patch-2
Feb 5, 2026
Merged

Remove setAccessible call for MimePart property#45
hrach merged 1 commit into
nextras:masterfrom
Ciki:patch-2

Conversation

@Ciki

@Ciki Ciki commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

Remove accessibility setting for ReflectionProperty in MailPanel since it is no-op since php8.1

Remove accessibility setting for ReflectionProperty in MailPanel since it is no-op since php8.1
@hrach hrach merged commit 4ba26ad into nextras:master Feb 5, 2026
12 checks passed
@hrach

hrach commented Feb 5, 2026

Copy link
Copy Markdown
Member

thx

trejjam added a commit to trejjam/nextras-mail-panel that referenced this pull request Apr 21, 2026
Wraps two unguarded ReflectionMethod::setAccessible(true) calls in
PHP_VERSION_ID < 80100 checks:

- src/FileMailer.php (Message::build())
- tests/MailPanelTest.phpt (MailPanel::getLatte())

The remaining call in src/MailPanel.php was already guarded correctly
by nextras#45 and is left untouched. Preserves PHP 7.1-8.0 support per
composer.json.
trejjam added a commit to trejjam/nextras-mail-panel that referenced this pull request Apr 21, 2026
Wraps two unguarded ReflectionMethod::setAccessible(true) calls in
PHP_VERSION_ID < 80100 checks:

- src/FileMailer.php (Message::build())
- tests/MailPanelTest.phpt (MailPanel::getLatte())

The remaining call in src/MailPanel.php was already guarded correctly
by nextras#45 and is left untouched. Preserves PHP 7.1-8.0 support per
composer.json.
hrach pushed a commit that referenced this pull request Apr 21, 2026
Wraps two unguarded ReflectionMethod::setAccessible(true) calls in
PHP_VERSION_ID < 80100 checks:

- src/FileMailer.php (Message::build())
- tests/MailPanelTest.phpt (MailPanel::getLatte())

The remaining call in src/MailPanel.php was already guarded correctly
by #45 and is left untouched. Preserves PHP 7.1-8.0 support per
composer.json.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants