Skip to content

Support PHP 8.5, remove deprecation#27

Open
jworreth wants to merge 2 commits intorowanhill:masterfrom
jworreth:feature/php-8.5
Open

Support PHP 8.5, remove deprecation#27
jworreth wants to merge 2 commits intorowanhill:masterfrom
jworreth:feature/php-8.5

Conversation

@jworreth
Copy link
Contributor

Moving to PHP 8.5 makes wiremock not happy with curl_close as it has been deprecated.

Please refer to: https://www.php.net/manual/en/function.curl-close.php

- curl_close is not needed anymore, for more detail, please refer to:
https://www.php.net/manual/en/function.curl-close.php
@jworreth jworreth force-pushed the feature/php-8.5 branch 2 times, most recently from 6806e8d to 4f709da Compare February 14, 2026 16:23
- Remove the usage of ReflectionProperty#setAccesible as it has no
effect since PHP 8.1
@jworreth
Copy link
Contributor Author

There is still a deprecation warning regarding the method ReflectionMethod::setAccessible(true).

This method has no effect since PHP 8.1.
I do not really know why it was used in the first place so to keep the code retro-compatible, I have added a check for the PHP version.

The check is required as long as the package needs to be compatible with PHP<8.1

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

Comments