Commit Graph

2065 Commits

Author SHA1 Message Date
github-actions[bot] 8f40a7d796 Update pre-commit dependencies 2025-06-23 18:05:44 +00:00
github-actions[bot] 41aaf44a09 Update outdated dependencies list (#956)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-19 13:13:50 -04:00
dependabot[bot] 487bc4016c ⬆ Bump cffi from 1.16.0 to 1.17.1 (#950)
Bumps [cffi](https://github.com/python-cffi/cffi) from 1.16.0 to 1.17.1.
- [Release notes](https://github.com/python-cffi/cffi/releases)
- [Commits](https://github.com/python-cffi/cffi/compare/v1.16.0...v1.17.1)

---
updated-dependencies:
- dependency-name: cffi
  dependency-version: 1.17.1
  dependency-type: indirect
  update-type: version-update:semver-minor
...

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-06-19 13:09:45 -04:00
dependabot[bot] 322a25067b ⬆ Bump deprecated from 1.2.14 to 1.2.18 (#953)
Bumps [deprecated](https://github.com/laurent-laporte-pro/deprecated) from 1.2.14 to 1.2.18.
- [Release notes](https://github.com/laurent-laporte-pro/deprecated/releases)
- [Changelog](https://github.com/laurent-laporte-pro/deprecated/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/laurent-laporte-pro/deprecated/compare/v1.2.14...v1.2.18)

---
updated-dependencies:
- dependency-name: deprecated
  dependency-version: 1.2.18
  dependency-type: indirect
  update-type: version-update:semver-patch
...

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-06-19 13:08:49 -04:00
dependabot[bot] e0ea13efa9 ⬆ Bump gitdb from 4.0.11 to 4.0.12 (#954)
Bumps [gitdb](https://github.com/gitpython-developers/gitdb) from 4.0.11 to 4.0.12.
- [Release notes](https://github.com/gitpython-developers/gitdb/releases)
- [Commits](https://github.com/gitpython-developers/gitdb/compare/4.0.11...4.0.12)

---
updated-dependencies:
- dependency-name: gitdb
  dependency-version: 4.0.12
  dependency-type: indirect
  update-type: version-update:semver-patch
...

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-06-19 13:08:33 -04:00
dependabot[bot] f5b7990152 ⬆ Bump typing-extensions from 4.11.0 to 4.14.0 (#952)
Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.11.0 to 4.14.0.
- [Release notes](https://github.com/python/typing_extensions/releases)
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/python/typing_extensions/compare/4.11.0...4.14.0)

---
updated-dependencies:
- dependency-name: typing-extensions
  dependency-version: 4.14.0
  dependency-type: indirect
  update-type: version-update:semver-minor
...

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-06-19 13:07:59 -04:00
dependabot[bot] cf95be8e6a ⬆ Bump cryptography from 44.0.1 to 45.0.4 (#951)
Bumps [cryptography](https://github.com/pyca/cryptography) from 44.0.1 to 45.0.4.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/44.0.1...45.0.4)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-version: 45.0.4
  dependency-type: indirect
  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-06-19 13:07:35 -04:00
github-actions[bot] b959c18a51 Update outdated dependencies list (#955)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-19 13:06:04 -04:00
Zach Borboa 26fbd895f2 Increase open pull request limit 2025-06-19 13:00:50 -04:00
dependabot[bot] baf7e419d3 ⬆ Bump charset-normalizer from 3.3.2 to 3.4.2 (#945)
---
updated-dependencies:
- dependency-name: charset-normalizer
  dependency-version: 3.4.2
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-19 13:00:45 -04:00
dependabot[bot] b9a4441715 ⬆ Bump smmap from 5.0.1 to 5.0.2 (#946)
---
updated-dependencies:
- dependency-name: smmap
  dependency-version: 5.0.2
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-19 12:57:41 -04:00
dependabot[bot] bf05e9c547 ⬆ Bump wrapt from 1.16.0 to 1.17.2 (#947)
---
updated-dependencies:
- dependency-name: wrapt
  dependency-version: 1.17.2
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-19 12:46:45 -04:00
dependabot[bot] e861cb87c8 ⬆ Bump certifi from 2024.7.4 to 2025.6.15 (#948)
---
updated-dependencies:
- dependency-name: certifi
  dependency-version: 2025.6.15
  dependency-type: indirect
  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-06-19 12:45:36 -04:00
dependabot[bot] 9b1f1122a3 ⬆ Bump idna from 3.7 to 3.10 (#944)
---
updated-dependencies:
- dependency-name: idna
  dependency-version: '3.10'
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-19 12:43:10 -04:00
github-actions[bot] fd9b78344a Update outdated dependencies list (#949)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-19 12:42:52 -04:00
Zach Borboa 3a0f39690d Fix location 2025-06-19 12:37:45 -04:00
Zach Borboa 457221ef74 Add workflow to track outdated dependencies (#943)
* Clean up

* Add workflow to track outdated dependencies

* Allow direct and indirect updates for all packages
2025-06-19 12:35:31 -04:00
dependabot[bot] ab88c24f6d Bump urllib3 from 2.2.2 to 2.5.0 in /scripts (#942)
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.2.2 to 2.5.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.2.2...2.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-19 11:03:38 -04:00
github-actions[bot] c61021a5c3 Merge pull request #941 from php-curl-class/dependabot/pip/scripts/requests-2.32.4
Bump requests from 2.32.0 to 2.32.4 in /scripts
2025-06-10 08:38:16 +00:00
dependabot[bot] 28a1e86a14 Bump requests from 2.32.0 to 2.32.4 in /scripts
Bumps [requests](https://github.com/psf/requests) from 2.32.0 to 2.32.4.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.32.0...v2.32.4)

---
updated-dependencies:
- dependency-name: requests
  dependency-version: 2.32.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-10 08:11:16 +00:00
github-actions[bot] 6dfaf34c98 Merge pull request #940 from php-curl-class/dependabot/github_actions/dependabot/fetch-metadata-2.4.0
⬆ Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0
2025-05-12 10:09:40 +00:00
dependabot[bot] 28bb750e36 ⬆ Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0
Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/dependabot/fetch-metadata/releases)
- [Commits](https://github.com/dependabot/fetch-metadata/compare/v2.3.0...v2.4.0)

---
updated-dependencies:
- dependency-name: dependabot/fetch-metadata
  dependency-version: 2.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-12 09:39:22 +00:00
github-actions[bot] 56f2575ff2 Merge pull request #938 from php-curl-class-helper/create-pull-request/patch
⬆ Update pre-commit dependencies
2025-03-31 18:33:31 +00:00
github-actions[bot] eb3180dbce Update pre-commit dependencies 2025-03-31 18:05:18 +00:00
github-actions[bot] 7a8f05efb1 Bump version: 11.1.0 → 12.0.0 12.0.0 2025-03-25 18:04:16 +00:00
Zach Borboa 202e857e85 Drop support for PHP 7.4 (#937) 2025-03-24 19:45:12 -04:00
github-actions[bot] 062f586135 Bump version: 11.0.5 → 11.1.0 11.1.0 2025-03-24 18:04:25 +00:00
Zach Borboa d57b0049a9 Update readme 2025-03-23 09:01:35 +00:00
Zach Borboa 45a7b1b671 Add methods like Curl::setGet() for each HTTP request method (#936)
* Adding methods like Curl::setGet() for each HTTP request method

Adding these methods to separate the request initialization from the
execution.

Methods added:
Curl::setDelete()
Curl::setGet()
Curl::setHead()
Curl::setOptions()
Curl::setPatch()
Curl::setPost()
Curl::setPut()
Curl::setSearch()

* Fix loading local test servers

Error message:
    +++ declare -A pids
    run_phpunit.sh: line 77: declare: -A: invalid option
    declare: usage: declare [-afFirtx] [-p] [name[=value] ...]

Error message:
    +++ server_count=7
    +++ pids=()
    run_phpunit.sh: line 85: "7" - 1: syntax error: operand expected (error token is ""7" - 1")

* Clean up
2025-03-23 05:00:39 -04:00
dependabot[bot] e2960d912b ⬆ Update prismjs requirement from ^1.29.0 to ^1.30.0 in /www/scripts (#934)
Updates the requirements on [prismjs](https://github.com/PrismJS/prism) to permit the latest version.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.29.0...v1.30.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: direct:production
...

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-03-22 15:05:40 -04:00
dependabot[bot] 99c97ea0e5 ⬆ Bump tj-actions/changed-files from 45 to 46 (#935)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 45 to 46.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/changed-files/compare/v45...v46)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  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-03-16 16:57:27 -04:00
Zach Borboa 9bd62516c2 Add badge for dependabot status 2025-03-12 06:21:48 -04:00
Zach Borboa af2cd43dd4 Fix dependabot error fecthing package manifest
Error message:
Error during file fetching; aborting: /package.json not found
dependency_file_not_found
2025-03-12 06:02:39 -04:00
github-actions[bot] 01a0e43fb6 Bump version: 11.0.4 → 11.0.5 11.0.5 2025-03-11 18:04:20 +00:00
Zach Borboa 3ff5d53552 Bump prismjs version 2025-03-08 21:16:14 -05:00
Zach Borboa 168e8624d4 Enable version updates for npm (#933) 2025-03-08 14:31:02 -05:00
Zach Borboa 41cc699798 Display summary of warnings (#932) 2025-03-08 13:44:18 -05:00
Zach Borboa 8d83782c06 Use PHPStan bleeding edge (#931) 2025-03-08 10:45:51 -05:00
Zach Borboa a64fad2a9d Fix psalm install error on future php releases (#930)
* Skip running psalm on future PHP releases

* Clean up indentation
2025-03-08 09:18:08 -05:00
Zach Borboa 58962a054e Fix PHPStan static analysis errors (#929)
* Increase PHPStan memory limit on local development

* Add emjois to test warnings and test errors

* Fix PHPStan static analysis errors

Error messages:
 ------ ------------------------------------------------------------------------------------------------------
  Line   src/Curl/Curl.php
 ------ ------------------------------------------------------------------------------------------------------
  123    Cannot unset property Curl\Curl::$curlErrorCodeConstant because it might have hooks in a subclass.
         🪪  unset.possiblyHookedProperty
  124    Cannot unset property Curl\Curl::$curlErrorCodeConstants because it might have hooks in a subclass.
         🪪  unset.possiblyHookedProperty
  125    Cannot unset property Curl\Curl::$curlOptionCodeConstants because it might have hooks in a subclass.
         🪪  unset.possiblyHookedProperty
  126    Cannot unset property Curl\Curl::$effectiveUrl because it might have hooks in a subclass.
         🪪  unset.possiblyHookedProperty
  127    Cannot unset property Curl\Curl::$rfc2616 because it might have hooks in a subclass.
         🪪  unset.possiblyHookedProperty
  128    Cannot unset property Curl\Curl::$rfc6265 because it might have hooks in a subclass.
         🪪  unset.possiblyHookedProperty
  129    Cannot unset property Curl\Curl::$totalTime because it might have hooks in a subclass.
         🪪  unset.possiblyHookedProperty
  564    Cannot unset property Curl\Curl::$curlErrorCodeConstant because it might have hooks in a subclass.
         🪪  unset.possiblyHookedProperty
  565    Cannot unset property Curl\Curl::$effectiveUrl because it might have hooks in a subclass.
         🪪  unset.possiblyHookedProperty
  566    Cannot unset property Curl\Curl::$totalTime because it might have hooks in a subclass.
         🪪  unset.possiblyHookedProperty
 ------ ------------------------------------------------------------------------------------------------------
2025-03-08 08:34:45 -05:00
github-actions[bot] 7dc4b9ca4f Merge pull request #928 from php-curl-class-helper/create-pull-request/patch
⬆ Update pre-commit dependencies
2025-02-27 18:33:01 +00:00
github-actions[bot] b96527cfc6 Update pre-commit dependencies 2025-02-27 18:05:04 +00:00
github-actions[bot] a56f446367 Merge pull request #927 from php-curl-class/dependabot/pip/pygithub-2.6.1
⬆ Bump pygithub from 2.6.0 to 2.6.1
2025-02-24 11:03:10 +00:00
dependabot[bot] 28bb643db8 ⬆ Bump pygithub from 2.6.0 to 2.6.1
Bumps [pygithub](https://github.com/pygithub/pygithub) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/pygithub/pygithub/releases)
- [Changelog](https://github.com/PyGithub/PyGithub/blob/v2.6.1/doc/changes.rst)
- [Commits](https://github.com/pygithub/pygithub/compare/v2.6.0...v2.6.1)

---
updated-dependencies:
- dependency-name: pygithub
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 10:34:53 +00:00
github-actions[bot] 6162edf0eb Bump version: 11.0.3 → 11.0.4 11.0.4 2025-02-20 20:42:49 +00:00
Zach Borboa 2cc50bd15e Actually increase psalm strictness (#926) 2025-02-19 22:13:10 -05:00
Zach Borboa 4cf4635e25 Increase psalm strictness (#925)
* Fix PossiblyUndefinedArrayOffset

ERROR: PossiblyUndefinedArrayOffset - ../src/Curl/Curl.php:1890:28 -
Possibly undefined array key (see https://psalm.dev/167)
                list($key, $value) = explode(':', $raw_headers[$i], 2);

* Fix PossiblyUndefinedArrayOffset

ERROR: PossiblyUndefinedArrayOffset - ../src/Curl/Curl.php:1034:28 -
Possibly undefined array key (see https://psalm.dev/167)
                list($key, $value) = explode(':', $header, 2);

* Fix PossiblyUndefinedArrayOffset

ERROR: PossiblyUndefinedArrayOffset - ../src/Curl/MultiCurl.php:465:28 -
Possibly undefined array key (see https://psalm.dev/167)
                list($key, $value) = explode(':', $header, 2);

* Fix PossiblyInvalidOperand

ERROR: PossiblyInvalidOperand - ../src/Curl/Curl.php:1407:69 - Cannot
concatenate with a int<0, max>|string (see https://psalm.dev/163)
                    echo 'Response content length (calculated): ' . $response_calculated_length . "\n";

* Fix PossiblyInvalidArgument

ERROR: PossiblyInvalidArgument - ../src/Curl/BaseCurl.php:408:34 -
Argument 2 of define expects array<array-key, mixed>|null|scalar, but
possibly different type false|resource provided (see
https://psalm.dev/092)
                define('STDERR', fopen('php://stderr', 'wb'));

* Fix ArgumentTypeCoercion

ERROR: ArgumentTypeCoercion - ../src/Curl/MultiCurl.php:956:16 -
Argument 1 of usleep expects int<0, max>, but parent type int provided
(see https://psalm.dev/193)
        usleep((int) $sleep_seconds * 1000000);

* Fix PossiblyFalseArgument

ERROR: PossiblyFalseArgument - ../src/Curl/MultiCurl.php:131:50 -
Argument 2 of file_put_contents cannot be false, possibly
array<array-key, string>|resource|string value expected (see
https://psalm.dev/104)
                    file_put_contents($filename, stream_get_contents($fh));

* Fix PossiblyFalseArgument

ERROR: PossiblyFalseArgument - ../src/Curl/Curl.php:437:49 - Argument 2
of stream_copy_to_stream cannot be false, possibly resource value
expected (see https://psalm.dev/104)
                stream_copy_to_stream($tmpfile, $fh);

ERROR: PossiblyFalseArgument - ../src/Curl/Curl.php:438:24 - Argument 1
of fclose cannot be false, possibly resource value expected (see
https://psalm.dev/104)
                fclose($fh);

* Fix PossiblyFalseArgument

ERROR: PossiblyFalseArgument - ../src/Curl/Curl.php:463:49 - Argument 2
of stream_copy_to_stream cannot be false, possibly resource value
expected (see https://psalm.dev/104)
            stream_copy_to_stream($file_handle, $main_file_handle);

ERROR: PossiblyFalseArgument - ../src/Curl/Curl.php:468:16 - Argument 1
of fclose cannot be false, possibly resource value expected (see
https://psalm.dev/104)
        fclose($main_file_handle);

* Fix PossiblyFalseArgument

ERROR: PossiblyFalseArgument - ../src/Curl/Curl.php:1891:36 - Argument 1
of count cannot be false, possibly Countable|array<array-key, mixed>
value expected (see https://psalm.dev/104)
        $raw_headers_count = count($raw_headers);

ERROR: PossiblyInvalidArrayAccess - ../src/Curl/Curl.php:1893:24 -
Cannot access array value on non-array variable $raw_headers of type
false (see https://psalm.dev/109)
            if (strpos($raw_headers[$i], ':') !== false) {

* Fix PossiblyInvalidArgument

ERROR: PossiblyInvalidArgument - ../src/Curl/Curl.php:1868:30 - Argument
2 of define expects array<array-key, mixed>|null|scalar, but possibly
different type false|resource provided (see https://psalm.dev/092)
            define('STDOUT', fopen('php://stdout', 'w'));

* Update psalm baseline
2025-02-19 21:40:56 -05:00
github-actions[bot] 4d126ef1d1 Bump version: 11.0.2 → 11.0.3 11.0.3 2025-02-19 18:04:26 +00:00
Zach Borboa 056de7d13d Use default for Psalm ensureOverrideAttribute (#923)
* Use default for Psalm ensureOverrideAttribute

* Fix missing Override attributes

Error: ../src/Curl/CaseInsensitiveArray.php:66:5:
MissingOverrideAttribute: Method Curl\CaseInsensitiveArray::offsetset
should have the "Override" attribute (see https://psalm.dev/358)
2025-02-18 21:49:22 -05:00
github-actions[bot] 214cfe01db Bump version: 11.0.1 → 11.0.2 11.0.2 2025-02-18 18:03:57 +00:00