Remove Reflection*::setAccessible() usage by Disservin · Pull Request #6869 · Codeception/Codeception · GitHub
Skip to content

Remove Reflection*::setAccessible() usage - #6869

Merged
TavoNiievez merged 1 commit into
Codeception:mainfrom
Disservin:remove-setAccessible
Sep 26, 2025
Merged

TavoNiievez merged 1 commit into
Codeception:mainfrom
Disservin:remove-setAccessible

Conversation

@Disservin

Copy link
Copy Markdown
Contributor

Note: As of PHP 8.1.0, calling this method has no effect; all properties are accessible by default.

https://www.php.net/manual/en/reflectionproperty.setaccessible.php
https://www.php.net/manual/en/reflectionmethod.setaccessible.php

This would eventually raise a deprecation notice

@Disservin

Copy link
Copy Markdown
Contributor Author

@TavoNiievez
TavoNiievez merged commit dc4950a into Codeception:main Sep 26, 2025
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.

3 participants