Commit Graph

2210 Commits

Author SHA1 Message Date
github-actions[bot] 369aeacfa4 Update outdated dependencies list 2025-12-10 18:09:20 +00:00
dependabot[bot] ce146416a5 ⬆ Bump peter-evans/create-pull-request from 7 to 8 (#1026)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 7 to 8.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v7...v8)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-10 10:59:07 -05:00
github-actions[bot] 798a1bfe29 Merge pull request #1024 from php-curl-class/dependabot/pip/urllib3-2.6.1
⬆ Bump urllib3 from 2.6.0 to 2.6.1
2025-12-09 09:29:30 +00:00
dependabot[bot] acf35d3e8a ⬆ Bump urllib3 from 2.6.0 to 2.6.1
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.6.0...2.6.1)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.6.1
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-09 09:09:24 +00:00
PHP Curl Class helper e8850c301e Update outdated dependencies list (#1023)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Zach Borboa <zachborboa@gmail.com>
2025-12-08 22:54:56 -05:00
github-actions[bot] 7ba097941c Merge pull request #1022 from php-curl-class-helper/create-pull-request/pre-commit
⬆ Update pre-commit dependencies
2025-12-08 18:27:05 +00:00
github-actions[bot] 616facf849 Update pre-commit dependencies 2025-12-08 18:06:39 +00:00
github-actions[bot] 9bbd1a2283 Merge pull request #1021 from php-curl-class/dependabot/pip/scripts/urllib3-2.6.0
Bump urllib3 from 2.5.0 to 2.6.0 in /scripts
2025-12-06 05:08:29 +00:00
dependabot[bot] bd884072e4 Bump urllib3 from 2.5.0 to 2.6.0 in /scripts
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.5.0...2.6.0)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.6.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-06 04:48:24 +00:00
github-actions[bot] f910932317 Bump version: 12.0.2 → 12.0.3 12.0.3 2025-11-24 19:36:44 +00:00
Zach Borboa f01d24f68a Use WeakMap for active handle tracking (#1020)
* Use WeakMap for active handle tracking

- Replaces array-based tracking with PHP 8.0 \WeakMap
- Replaces an O(N) lookup with an O(1) lookup in the MultiCurl execution loop

* Fix tests
2025-11-21 21:36:54 -05:00
dependabot[bot] e8196936f9 ⬆ Bump actions/checkout from 5 to 6 (#1019)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Zach Borboa <zachborboa@gmail.com>
2025-11-21 14:34:18 +00:00
Zach Borboa c46ef2a858 Add PHP 8.5 (#1018)
* Add PHP 8.5 to continuous integration tests

* Use variable

* Add temporary skip

* Allow PHP CS Fixer to run on unsupported PHP versions
2025-11-21 09:13:38 -05:00
Zach Borboa 4b36f455dd Simplify MultiCurl execution loop (#1017)
* Clean up

* Simplify MultiCurl execution loop

- Removes legacy workarounds
- Deprecates MultiCurl::setRequestTimeAccuracy()
- Removes use of CURLM_CALL_MULTI_PERFORM ("As of cURL 7.20.0, this constant is not used")
2025-11-20 23:39:03 -05:00
github-actions[bot] 064e78f89a Bump version: 12.0.1 → 12.0.2 12.0.2 2025-11-18 19:37:10 +00:00
Zach Borboa 8e7b3d44fd Attempt to fix release by fetching all history for all branches and tags 2025-11-18 14:35:32 -05:00
Zach Borboa 3b59f4001d Include tags when checking out for release 2025-11-18 09:29:39 -05:00
Zach Borboa f058672e6f Improve MultiCurl::waitUntilRequestQuotaAvailable (#1016)
* Include keyword

* Use numeric literal separators

* Improve waitUntilRequestQuotaAvailable using new TimeUtil
2025-11-16 14:58:13 -05:00
Zach Borboa ccbac89b97 Update fetch-depth as we don't need all history for all branches 2025-11-16 10:27:16 -05:00
Zach Borboa 0f597d3306 Link to project and exclude composer file from releases 2025-11-16 09:02:08 -05:00
Zach Borboa 4bf7292438 Fix rate limit (#1015)
* Rate limit fix

If $elapsed_seconds > $this->intervalSeconds the first time hasRequestQuota() is called, rateLimitReached is never set to true and the limit is not enforced
This can happen if the rate limit is set in a callback function some time after starting

I completely removed $rateLimitReached since its only use was in the removed condition check

Alternatively, it should be possible to reinitialize currentStartTime when setRateLimit is called, but I still don't really see the usefulness of resetting the timer only when the limit was reached in the previous interval

* Rename variable

* Clean up

---------

Co-authored-by: Riccardo Nava <116394015+ricnava00@users.noreply.github.com>
2025-11-15 17:08:55 -05:00
Zach Borboa 14e0881af7 Skip install 2025-11-13 19:54:36 -05:00
Zach Borboa 9463348c4f Merge pull request #1014 from php-curl-class-helper/create-pull-request/outdated
⬆ Update outdated dependencies list
2025-11-12 21:37:40 -05:00
github-actions[bot] eda6988726 Update outdated dependencies list 2025-11-13 02:17:28 +00:00
Zach Borboa 3e1b56d94c Approve update 2025-11-12 21:16:41 -05:00
PHP Curl Class helper c2a9330f98 Update package certifi (#1013)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Zach Borboa <zachborboa@gmail.com>
2025-11-12 21:14:09 -05:00
PHP Curl Class helper 48d5076036 Update package PyNaCl (#1012)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Zach Borboa <zachborboa@gmail.com>
2025-11-12 21:13:45 -05:00
Zach Borboa 017f2a83e3 Re-use branch name where possible 2025-11-12 21:05:14 -05:00
Zach Borboa 4b83a84946 Enable auto-merge for pull request 2025-11-12 21:00:18 -05:00
Zach Borboa b18817323b Update to latest version 2025-11-12 21:00:15 -05:00
Zach Borboa 46e6550f78 Merge pull request #1010 from php-curl-class-helper/create-pull-request/outdated
⬆ Update outdated dependencies list
2025-11-12 19:58:34 -05:00
Zach Borboa c815b2420e Merge branch 'master' into create-pull-request/outdated 2025-11-12 19:38:25 -05:00
github-actions[bot] 49dbab2b8c Merge pull request #1009 from php-curl-class-helper/create-pull-request/pre-commit
⬆ Update pre-commit dependencies
2025-11-12 18:27:25 +00:00
github-actions[bot] b4af13e7f9 Update outdated dependencies list 2025-11-12 18:08:52 +00:00
github-actions[bot] 6a9751946b Update pre-commit dependencies 2025-11-12 18:06:25 +00:00
Zach Borboa 781e46e1eb Fix branch name 2025-11-12 09:59:16 -05:00
Zach Borboa 18cdd4ceed Fix typo 2025-11-12 09:58:14 -05:00
Zach Borboa dfb43deb12 Add workflow for updating a package 2025-11-12 09:56:27 -05:00
Zach Borboa 47336e1285 Fix reading outdated packages list 2025-11-12 09:26:25 -05:00
Zach Borboa 167217bb95 Work on workflow for upgrading outdated dependencies 2025-11-11 17:41:32 -05:00
Zach Borboa 7fc66e1f7e Merge pull request #1008 from php-curl-class-helper/create-pull-request/outdated
⬆ Update outdated dependencies list
2025-11-11 13:27:40 -05:00
github-actions[bot] 8bf277d713 Update outdated dependencies list 2025-11-11 18:06:50 +00:00
github-actions[bot] 4402185802 Merge pull request #1007 from php-curl-class-helper/create-pull-request/pre-commit
⬆ Update pre-commit dependencies
2025-11-10 18:26:22 +00:00
github-actions[bot] d749d0fe34 Update pre-commit dependencies 2025-11-10 18:06:18 +00:00
Zach Borboa 0a8e085515 Merge pull request #1006 from php-curl-class-helper/create-pull-request/outdated
⬆ Update outdated dependencies list
2025-11-09 13:19:03 -05:00
github-actions[bot] bab4c73072 Update outdated dependencies list 2025-11-09 17:58:52 +00:00
Zach Borboa 88f91d595e Bump pyjwt 2025-11-09 12:57:54 -05:00
Zach Borboa 223d4f4b99 Add script to update requirements 2025-11-09 12:47:35 -05:00
github-actions[bot] 6484fdde6b Bump version: 12.0.0 → 12.0.1 12.0.1 2025-11-03 18:05:05 +00:00
Zach Borboa 7e724dc9b8 Remove calls to deprecated functions (#1005)
* Fix phpcs warning

FILE: ./src/Curl/Curl.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 239 | WARNING | Function curl_close() is deprecated since PHP 8.5
     |         | (PHPCompatibility.FunctionUse.RemovedFunctions.curl_closeDeprecated)
-----------------------------------------------------------------------------------------------------------------

* Fix phpcs warning

FILE: ./tests/Helper.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 126 | WARNING | Function finfo_close() is deprecated since PHP 8.5
     |         | (PHPCompatibility.FunctionUse.RemovedFunctions.finfo_closeDeprecated)
-----------------------------------------------------------------------------------------------------------------

* Fix psalm error

ERROR: UnusedBaselineEntry - ../src/Curl/Curl.php:0:0 - Baseline for
issue "PossiblyInvalidArgument" has 1 extra entry. (see
https://psalm.dev/316)
2025-11-01 23:48:41 -04:00