Commit Graph

2001 Commits

Author SHA1 Message Date
github-actions[bot] 2e56602b04 Update pre-commit dependencies 2025-01-28 18:04:48 +00:00
github-actions[bot] 492432cb36 Merge pull request #914 from php-curl-class/dependabot/github_actions/dependabot/fetch-metadata-2.3.0
⬆ Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0
2025-01-27 09:40:53 +00:00
dependabot[bot] e713a1ef7a ⬆ Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0
Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/dependabot/fetch-metadata/releases)
- [Commits](https://github.com/dependabot/fetch-metadata/compare/v2.2.0...v2.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-27 09:12:21 +00:00
Zach Borboa 8259795c46 Fix CI tests (psalm) (#913)
* Display psalm version being run

* Update exclusions

* Use separate configuration for PHP 7.4

* Remove temporary workaround
2025-01-26 19:22:36 -05:00
github-actions[bot] c8a7bc92f2 Bump version: 11.0.0 → 11.0.1 11.0.1 2025-01-13 18:04:13 +00:00
Zach Borboa 8cbaf60cf0 Move pre-commit configuration out of root directory (#911) 2025-01-12 15:59:05 -05:00
Zach Borboa 29cca2e48b Move some configs out of the root directory (#910)
* Move flake8 configuration out of root directory

* Move PHPStan configuration out of root directory
2025-01-12 12:39:31 -05:00
Zach Borboa bd793d1287 Increase Psalm strictness (#909)
* Increase Psalm strictness

* Fix static analysis errors

ERROR: RedundantCast - ../src/Curl/CaseInsensitiveArray.php:91:16 - Redundant cast to bool (see https://psalm.dev/262)
        return (bool) array_key_exists(strtolower($offset), $this->data);

ERROR: RedundantCast - ../src/Curl/CaseInsensitiveArray.php:138:16 - Redundant cast to int<0, max> (see https://psalm.dev/262)
        return (int) count($this->data);

ERROR: RedundantCast - ../src/Curl/CaseInsensitiveArray.php:187:16 - Redundant cast to bool (see https://psalm.dev/262)
        return (bool) (key($this->data) !== null);

ERROR: ForbiddenCode - ../src/Curl/Curl.php:1765:13 - Unsafe var_dump (see https://psalm.dev/002)
            var_dump($value);

ERROR: ForbiddenCode - ../src/Curl/Curl.php:1770:13 - Unsafe var_dump (see https://psalm.dev/002)
            var_dump($value);

ERROR: InvalidOperand - ../src/Curl/Curl.php:1816:35 - Cannot concatenate with a value-of<TArray> (see https://psalm.dev/058)
                return $k . '=' . $v;
2025-01-11 23:11:26 -05:00
Zach Borboa 634ee48552 Increase PHPStan strictness (#908)
* Enable color

* Increase PHPStan strictness

* Fix static analysis error

------ --------------------------------------------------
Line   src/Curl/MultiCurl.php
------ --------------------------------------------------
593    Variable $interval_seconds might not be defined.
        🪪  variable.undefined
------ --------------------------------------------------

* Increase PHPStan strictness

* Fix static analysis errors

------ -----------------------------------------------------------------
Line   scripts/bump_major_version.php
------ -----------------------------------------------------------------
8      Binary operation "+=" between string and 1 results in an error.
        🪪  assignOp.invalid
------ -----------------------------------------------------------------

------ -----------------------------------------------------------------
Line   scripts/bump_minor_version.php
------ -----------------------------------------------------------------
8      Binary operation "+=" between string and 1 results in an error.
        🪪  assignOp.invalid
------ -----------------------------------------------------------------

------ -----------------------------------------------------------------
Line   scripts/bump_patch_version.php
------ -----------------------------------------------------------------
8      Binary operation "+=" between string and 1 results in an error.
        🪪  assignOp.invalid
------ -----------------------------------------------------------------

* Fix static analysis errors

------ --------------------------------------------------------------------------------------------------------------------
Line   src/Curl/CaseInsensitiveArray.php
------ --------------------------------------------------------------------------------------------------------------------
132    PHPDoc tag @param has invalid value (void): Unexpected token "\n     * ", expected variable at offset 42 on line 4
        🪪  phpDoc.parseError
145    PHPDoc tag @param has invalid value (void): Unexpected token "\n     * ", expected variable at offset 44 on line 4
        🪪  phpDoc.parseError
158    PHPDoc tag @param has invalid value (void): Unexpected token "\n     * ", expected variable at offset 41 on line 4
        🪪  phpDoc.parseError
171    PHPDoc tag @param has invalid value (void): Unexpected token "\n     * ", expected variable at offset 40 on line 4
        🪪  phpDoc.parseError
197    PHPDoc tag @param has invalid value (void): Unexpected token "\n     * ", expected variable at offset 43 on line 4
        🪪  phpDoc.parseError
------ --------------------------------------------------------------------------------------------------------------------

* Fix static analysis errors

------ -----------------------------------------------------------------------------------
Line   src/Curl/MultiCurl.php
------ -----------------------------------------------------------------------------------
937    Comparison operation "<" between float and (array|float|int) results in an error.
        🪪  smaller.invalid
941    Comparison operation "<" between float and (array|float|int) results in an error.
        🪪  smaller.invalid
------ -----------------------------------------------------------------------------------

* Increase PHPStan strictness

* Fix static analysis errors

------ -------------------------------------------
Line   src/Curl/Decoder.php
------ -------------------------------------------
22     Offset '0' does not exist on list<mixed>.
        🪪  offsetAccess.notFound
41     Offset '0' does not exist on list<mixed>.
        🪪  offsetAccess.notFound
------ -------------------------------------------
2025-01-11 21:51:30 -05:00
Zach Borboa 87fc9b3796 Use separate scripts to ci tests (#907)
* Run ci static analysis checks using scripts

* Clean up

* Move phpunit run to dedicated script

* Use run.sh and remove ci.sh

* Rename test scripts to be prefixed with "run_"

* Move static analysis runs to test script

* Clean up
2025-01-10 21:44:05 -05:00
Zach Borboa 55e95572fc Add flair to version bump pull requests (#906) 2025-01-10 18:35:10 -05:00
Zach Borboa ffda7c386a Add PHPStan for static analysis (#905) 2025-01-10 17:47:54 -05:00
Zach Borboa a11ecf6d7b Clean up (#904) 2025-01-09 22:30:06 -05:00
github-actions[bot] b9e9259791 Merge pull request #902 from php-curl-class/dependabot/pip/gitpython-3.1.44
Bump gitpython from 3.1.43 to 3.1.44
2025-01-02 09:30:13 +00:00
dependabot[bot] 7df3e04406 Bump gitpython from 3.1.43 to 3.1.44
Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.43 to 3.1.44.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.43...3.1.44)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-02 09:09:26 +00:00
Zach Borboa 7b22d3541d Update badge styles (#901) 2024-12-17 21:32:25 -05:00
Zach Borboa a041ac97db Add PHP 8.4 as supported (#900)
* Add PHP 8.4 as supported

* Add temporary workaround that manually install psalm on currently supported versions
2024-12-04 09:39:33 -05:00
github-actions[bot] e5dac1de0e Merge pull request #899 from php-curl-class/dependabot/pip/pygithub-2.5.0
Bump pygithub from 2.4.0 to 2.5.0
2024-11-07 10:03:49 +00:00
dependabot[bot] e4b2712001 Bump pygithub from 2.4.0 to 2.5.0
Bumps [pygithub](https://github.com/pygithub/pygithub) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/pygithub/pygithub/releases)
- [Changelog](https://github.com/PyGithub/PyGithub/blob/main/doc/changes.rst)
- [Commits](https://github.com/pygithub/pygithub/compare/v2.4.0...v2.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-07 09:42:01 +00:00
github-actions[bot] 7bf5c35ef2 Merge pull request #898 from php-curl-class-helper/create-pull-request/patch
Update pre-commit dependencies
2024-10-08 18:25:54 +00:00
github-actions[bot] 301e590864 Update pre-commit dependencies 2024-10-08 18:04:26 +00:00
Zach Borboa c40be1084e Fix phpcs warning (#897)
FILE: ...e/runner/work/php-curl-class/php-curl-class/tests/PHPCurlClass/UrlTest.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------
 14 | WARNING | The $escape parameter must be passed when calling fgetcsv() as
    |         | its default value will change in a future PHP version.
    |         | (PHPCompatibility.ParameterValues.RemovedProprietaryCSVEscaping.DeprecatedParamNotPassed)
 15 | WARNING | The $escape parameter must be passed when calling fgetcsv() as
    |         | its default value will change in a future PHP version.
    |         | (PHPCompatibility.ParameterValues.RemovedProprietaryCSVEscaping.DeprecatedParamNotPassed)
--------------------------------------------------------------------------------
2024-10-07 21:49:42 -04:00
github-actions[bot] 45e418787d Merge pull request #895 from php-curl-class/dependabot/composer/vimeo/psalm-gte-5.26.1
Update vimeo/psalm requirement from >=5.26.0 to >=5.26.1
2024-09-10 09:46:12 +00:00
dependabot[bot] 95e9033a52 Update vimeo/psalm requirement from >=5.26.0 to >=5.26.1
Updates the requirements on [vimeo/psalm](https://github.com/vimeo/psalm) to permit the latest version.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](https://github.com/vimeo/psalm/compare/5.26.0...5.26.1)

---
updated-dependencies:
- dependency-name: vimeo/psalm
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-10 09:24:19 +00:00
github-actions[bot] a681f3aeca Merge pull request #894 from php-curl-class/dependabot/composer/vimeo/psalm-gte-5.26.0
Update vimeo/psalm requirement from >=5.25.0 to >=5.26.0
2024-09-09 10:16:34 +00:00
dependabot[bot] 6bdaf9b5f9 Update vimeo/psalm requirement from >=5.25.0 to >=5.26.0
Updates the requirements on [vimeo/psalm](https://github.com/vimeo/psalm) to permit the latest version.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](https://github.com/vimeo/psalm/compare/5.25.0...5.26.0)

---
updated-dependencies:
- dependency-name: vimeo/psalm
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-09 09:55:08 +00:00
dependabot[bot] f59e512f3b Bump peter-evans/create-pull-request from 6 to 7 (#892)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6 to 7.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v6...v7)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  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>
2024-09-04 14:34:58 +00:00
github-actions[bot] 7f6ba43b6e Merge pull request #893 from php-curl-class/dependabot/pip/scripts/cryptography-43.0.1
Bump cryptography from 42.0.5 to 43.0.1 in /scripts
2024-09-04 00:42:18 +00:00
dependabot[bot] 8710ecc505 Bump cryptography from 42.0.5 to 43.0.1 in /scripts
Bumps [cryptography](https://github.com/pyca/cryptography) from 42.0.5 to 43.0.1.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/42.0.5...43.0.1)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-04 00:20:21 +00:00
github-actions[bot] 5fa6fbbbf6 Merge pull request #891 from php-curl-class/dependabot/pip/pygithub-2.4.0
Bump pygithub from 2.3.0 to 2.4.0
2024-08-26 09:53:53 +00:00
dependabot[bot] eef57a9cb9 Bump pygithub from 2.3.0 to 2.4.0
Bumps [pygithub](https://github.com/pygithub/pygithub) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/pygithub/pygithub/releases)
- [Changelog](https://github.com/PyGithub/PyGithub/blob/main/doc/changes.rst)
- [Commits](https://github.com/pygithub/pygithub/compare/v2.3.0...v2.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-26 09:32:34 +00:00
Zach Borboa 28abb78e2e Fix links in table of contents caused by variation selector-16 (U+FE0F) 2024-08-24 14:11:30 -04:00
Zach Borboa 357d1201a0 Attempt to fix links in the table of contents 2024-08-24 13:35:48 -04:00
Zach Borboa bbcbb72c9e Add flair 2024-08-24 13:25:29 -04:00
github-actions[bot] db6f650c47 Bump version: 10.0.1 → 11.0.0 11.0.0 2024-08-22 18:03:48 +00:00
dependabot[bot] 2e293e082a Bump tj-actions/changed-files from 44 to 45 (#890)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 44 to 45.
- [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/v44...v45)

---
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>
2024-08-22 07:45:28 -04:00
dependabot[bot] 6ed4c65eff Update vimeo/psalm requirement from >=0.3.63 to >=5.25.0 (#876)
Updates the requirements on [vimeo/psalm](https://github.com/vimeo/psalm) to permit the latest version.
- [Release notes](https://github.com/vimeo/psalm/releases)
- [Commits](https://github.com/vimeo/psalm/compare/0.3.63...5.25.0)

---
updated-dependencies:
- dependency-name: vimeo/psalm
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-22 03:23:11 +00:00
Zach Borboa c808484e5b Drop support for PHP 7.3 (#889) 2024-08-21 22:56:50 -04:00
Zach Borboa 10ea095b5d Drop support for PHP 7.2 (#888) 2024-08-21 22:27:45 -04:00
Zach Borboa d6ffbcfb44 Drop support for PHP 7.1 (#887) 2024-08-21 21:40:39 -04:00
Zach Borboa 50bb005686 Approve pull request only if not already approved (#883) 2024-08-21 20:32:49 -04:00
github-actions[bot] 3fbd244703 Bump version: 10.0.0 → 10.0.1 10.0.1 2024-08-21 18:03:41 +00:00
Zach Borboa d6c8c2879b Use nullable type declaration as supported in versions >= PHP 7.1 (#882) 2024-08-20 22:09:03 -04:00
github-actions[bot] f08eb12db8 Bump version: 9.19.2 → 10.0.0 10.0.0 2024-08-20 18:03:54 +00:00
Zach Borboa fc52d8db51 Bump min psalm version (#879) 2024-08-17 09:45:18 -04:00
Zach Borboa 63bddcd230 Drop support for PHP 7.0 (#880) 2024-08-17 09:15:46 -04:00
teandr 1d05ac3511 Add public method getActiveCurls (#871) 2024-08-17 02:55:10 +00:00
Konrad Abicht e89823a1cb TROUBLESHOOTING.md: use correct $curl properties (#878)
It seems the current values don't account for the `$curl` instance.
2024-08-17 02:14:48 +00:00
github-actions[bot] b9bb933eac Merge pull request #877 from php-curl-class-helper/create-pull-request/patch
Update pre-commit dependencies
2024-08-05 18:25:49 +00:00
github-actions[bot] c81a302c73 Update pre-commit dependencies 2024-08-05 18:04:16 +00:00