Skip to content

Remove setAccessible calls, no-ops since PHP 8.1#117

Merged
smnandre merged 1 commit into
playwright-php:mainfrom
smnandre:sa/reflection-noop
Jul 21, 2026
Merged

Remove setAccessible calls, no-ops since PHP 8.1#117
smnandre merged 1 commit into
playwright-php:mainfrom
smnandre:sa/reflection-noop

Conversation

@smnandre

Copy link
Copy Markdown
Member

Reflection reaches private and protected members without permission since PHP 8.1.

Reflection reaches private and protected members without permission
since PHP 8.1, which made these calls do nothing. PHP 8.5 deprecates the
method, so they now emit a deprecation on the newest version of the CI
matrix while still doing nothing on every other one.

The library requires PHP ^8.2, one version above the floor where the
method stopped having an effect, so no supported runtime needs them. The
surrounding setValue() and getValue() calls work unchanged.
@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@smnandre
smnandre merged commit 34cc74b into playwright-php:main Jul 21, 2026
11 checks passed
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.

1 participant