Skip to content

Comments

Php 8.5 Support#42

Merged
jovanmaric merged 4 commits intotinify:masterfrom
phpfui:PHP8.5
Dec 10, 2025
Merged

Php 8.5 Support#42
jovanmaric merged 4 commits intotinify:masterfrom
phpfui:PHP8.5

Conversation

@phpfui
Copy link
Contributor

@phpfui phpfui commented Dec 9, 2025

curl_close() as been a NoOp since PHP 8.0. This PR tests for the PHP version then only calls curl_close() on PHP versions below 8.0. This will avoid a depreciation notice.

I also fixed a depreciation notice in the test Mocks, changed PHP 8.4 to 8.5 for tests and updated the proposed version.

@jovanmaric jovanmaric merged commit 0b09830 into tinify:master Dec 10, 2025
16 checks passed
@jovanmaric
Copy link
Contributor

Hi @phpfui ,

Thanks for the PR. I've reviewed and merged it 💪!

Sreini pushed a commit that referenced this pull request Feb 13, 2026
…ixes

* Set minimum TLS version to v1.2

* Update changelog

* Php 8.5 Support (#42)

* Avoid depreciation notice in PHP 8.5

* Add PHP 8.5 to tests

* Remove dynamic property depreciation notice

* Anticipate V1.6.4

* Use HTTP Post when retrieving result (#41)

* Use http post when retrieving result

* 1.6.4 and changelog

* When commands is empty, do a get with body null

* Change condition to use empty

* fix: correct HTTP method logic for Source result requests

- Fix inverted boolean logic for has_commands check
- Ensure GET is used when no commands are present
- Ensure POST is used when commands are present
- Add comprehensive tests for both GET and POST scenarios

* docs(changelog): add missing changes to `1.6.4`

* fix(client): explicitly unset connection handler to free connection when PHP>8.5

* Trigger build

* Trigger build

* Trigger build

---------

Co-authored-by: Remco Koopmans <me@remcokoopmans.com>
Co-authored-by: Bruce Wells <brucekwells@gmail.com>
Co-authored-by: Jovan Marić <jovan@maric.vision>
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