Skip to content

PimpleTest: Only call setAccessible on PHP < 8.1#279

Merged
fabpot merged 1 commit intosilexphp:mainfrom
reedy:patch-2
Dec 31, 2025
Merged

PimpleTest: Only call setAccessible on PHP < 8.1#279
fabpot merged 1 commit intosilexphp:mainfrom
reedy:patch-2

Conversation

@reedy
Copy link
Copy Markdown
Contributor

@reedy reedy commented Dec 30, 2025

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

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

and

This function has been DEPRECATED as of PHP 8.5.0. Relying on this function is highly discouraged.

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

> Note: As of PHP 8.1.0, calling this method has no effect; all properties are accessible by default.
@fabpot
Copy link
Copy Markdown
Member

fabpot commented Dec 31, 2025

Good catch, thanks @reedy.

@fabpot fabpot merged commit 0200298 into silexphp:main Dec 31, 2025
10 checks passed
@reedy reedy deleted the patch-2 branch December 31, 2025 15:02
@reedy
Copy link
Copy Markdown
Contributor Author

reedy commented Jan 2, 2026

Can you tag a (patch?) release for this please? I'm guessing it could be 3.6.1...

v3.6.0...main

Thanks!

@fabpot
Copy link
Copy Markdown
Member

fabpot commented Jan 8, 2026

Can you tag a (patch?) release for this please? I'm guessing it could be 3.6.1...

v3.6.0...main

Thanks!

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants