Commit Graph

1701 Commits

Author SHA1 Message Date
Zach Borboa a304084a61 Display bit flags in use when calling Curl::diagnose()
This change attempts to determine which underlying constants were
bitmasked together to reach the resulting value passed to curl_setopt()
using Curl::setOpt().
2023-05-18 16:11:07 -07:00
Zach Borboa 0ea79808d6 Merge pull request #778 from zachborboa/master
Handle missing content-type response header in Curl::diagnose()
2023-05-15 19:58:42 -07:00
Zach Borboa f7b216a3d9 Fix #777: Handle missing content-type response header in Curl::diagnose() 2023-05-15 19:33:59 -07:00
github-actions[bot] eb4d2213bb Bump version: 9.14.3 → 9.14.4 9.14.4 2023-05-08 18:03:02 +00:00
Zach Borboa c7efc3f3d6 Merge pull request #776 from zachborboa/master
Update article in Curl::diagnose() Allow header warning
2023-05-07 03:21:04 -07:00
Zach Borboa 5b39126488 Update article in Curl::diagnose() Allow header warning 2023-05-07 02:50:08 -07:00
Zach Borboa 58f03b1699 Add @see tags to related functions 2023-05-05 08:45:03 -07:00
Zach Borboa a9ca60f23a Exclude EditorConfig file from git archive 2023-03-13 17:05:20 -07:00
Zach Borboa e0f8eb149c Add note on continuous integration tests 2023-03-13 16:55:33 -07:00
github-actions[bot] 5d87676a3a Bump version: 9.14.2 → 9.14.3 9.14.3 2023-03-13 18:02:56 +00:00
Zach Borboa 04144e6aab Merge pull request #774 from zachborboa/master
Remove use of array_merge() inside loop
2023-03-11 05:27:50 -08:00
Zach Borboa dfdd2f5fb0 Remove use of array_merge() inside loop 2023-03-11 05:01:00 -08:00
Zach Borboa 5087ac64f6 Merge pull request #773 from zachborboa/master
Fix sed portability
2023-03-10 05:36:24 -08:00
Zach Borboa 3971c2f081 Fix sed portability 2023-03-10 04:31:11 -08:00
github-actions[bot] 543cd0aff1 Bump version: 9.14.1 → 9.14.2 9.14.2 2023-03-09 18:03:01 +00:00
Zach Borboa 9b9dd17c8d Merge pull request #771 from zachborboa/master
Clean up: Reduce nesting
2023-03-08 15:25:39 -08:00
Zach Borboa 9a1eae612b Reduce nesting 2023-03-08 14:34:05 -08:00
github-actions[bot] 71eadd9ea8 Bump version: 9.14.0 → 9.14.1 9.14.1 2023-02-27 18:02:59 +00:00
Zach Borboa 4133006c9f Remove coding standard ruleset exclusion 2023-02-26 12:07:58 -08:00
Zach Borboa 1aa3f87115 Replace some private method names not in camel caps format 2023-02-26 12:07:58 -08:00
Zach Borboa c6256e31b3 Remove coding standard ruleset exclusion 2023-02-26 12:07:58 -08:00
Zach Borboa 54981b9a38 Add Dependabot configuration 2023-02-26 11:42:32 -08:00
Zach Borboa ffc0a3e798 Use a more friendly release time and day of week
"0 18 * * 1-4":
  "At 18:00 on every day-of-week from Monday through Thursday."

  PT  - 10 am
  CT  - 12 pm
  ET  -  1 pm
  UTC -  6 pm
2023-02-26 09:51:13 -08:00
github-actions[bot] 70e0c7fe75 Bump version: 9.13.1 → 9.14.0 9.14.0 2023-02-26 16:55:31 +00:00
Zach Borboa 23bd83e84e Merge pull request #767 from zachborboa/master
Make https:// and http:// the allowed request protocols by default
2023-02-25 10:56:18 -08:00
Zach Borboa ccd476b448 Make https:// and http:// the allowed request protocols by default 2023-02-25 10:23:18 -08:00
Zach Borboa 2c8a7f03c2 Add EditorConfig file to help with coding styles 2023-02-25 09:53:19 -08:00
Zach Borboa 94b769e0d0 Merge pull request #766 from zachborboa/master
Update ci to work with PHPUnit 10
2023-02-18 05:36:35 -08:00
Zach Borboa d4af343164 Add emits warning test for PHPUnit 10 2023-02-17 21:32:20 -08:00
Zach Borboa 10ead55ca4 Fail on risky tests
Catch the following:
  There was 1 risky test:

  1) CurlTest\PHPCurlClassTest::testRequiredOptionCurlOptReturnTransferEmitsWarning
  This test did not perform any assertions

  /home/runner/work/php-curl-class/php-curl-class/tests/PHPCurlClass/PHPCurlClassTest.php:3097
2023-02-17 20:21:54 -08:00
Zach Borboa 4ed7644250 Update tests to work with PHPUnit 10 2023-02-17 19:31:41 -08:00
Zach Borboa acf5443a68 Fix sed command portability
Error messages:
    $ sed -i'' '-e/->expectWarning(/d' ./PHPCurlClass/PHPCurlClassTest.php ./PHPCurlClass/PHPMultiCurlClassTest.php
    sed: 1: "./PHPCurlClass/PHPCurlC ...": invalid command code .

    + phpunit_v10_shim
    + remove_expectWarning
    + sed -i '' '-e/->expectWarning(/d' ./PHPCurlClass/PHPCurlClassTest.php ./PHPCurlClass/PHPMultiCurlClassTest.php
    sed: can't read : No such file or directory
2023-02-17 19:29:22 -08:00
Zach Borboa bcf3c1ad33 Remove --verbose option removed in PHPUnit 10
Error:
  + ../vendor/bin/phpunit --configuration phpunit.xml --verbose
  PHPUnit 10.0.1 by Sebastian Bergmann and contributors.

  Unknown option "--verbose"
2023-02-03 17:24:13 -08:00
Zach Borboa 43e666de0f Remove --debug option removed in PHPUnit 10 for continuous integration tests
Error:
  + ../vendor/bin/phpunit --configuration phpunit.xml --debug --verbose
  PHPUnit 10.0.1 by Sebastian Bergmann and contributors.

  Unknown option "--debug"
2023-02-03 17:16:17 -08:00
Zach Borboa 08850b1a90 Remove --debug option removed in PHPUnit 10
Error:
  + ../vendor/bin/phpunit --configuration phpunit.xml --debug --verbose
  PHPUnit 10.0.1 by Sebastian Bergmann and contributors.

  Unknown option "--debug"
2023-02-03 17:04:12 -08:00
Zach Borboa 9954caab60 Update example to avoid use of dynamic properties 2023-02-02 05:29:45 -08:00
Zach Borboa 253c84ea8a Update site badge urls 2023-01-29 15:38:41 -08:00
Zach Borboa 99bd995288 Format response header type notice as sentence 2023-01-26 16:58:45 -08:00
Zach Borboa f6ed305633 Clean up 2023-01-15 19:09:34 -08:00
github-actions[bot] 1fa71f6392 Bump version: 9.13.0 → 9.13.1 9.13.1 2023-01-16 01:29:25 +00:00
Zach Borboa 4f0c563026 Merge pull request #762 from zachborboa/master
Allow uploads with CURLStringFile type
2023-01-15 13:50:59 -08:00
Zach Borboa b41168b89b Clean up 2023-01-15 13:28:04 -08:00
Zach Borboa 673564609a Add tests for using CURLStringFile 2023-01-15 13:28:04 -08:00
Zach Borboa b6b3800dfa Fix psalm UndefinedClass error
Message:
    ERROR: UndefinedClass - ../src/Curl/ArrayUtil.php:96:87 - Class, interface or enum named CURLStringFile does not exist (see https://psalm.dev/019)
        } elseif (class_exists('CURLStringFile') && $value instanceof \CURLStringFile) {
2023-01-15 13:28:04 -08:00
Sander Backus 5cd8e3db11 Allow uploads with CURLStringFile type 2023-01-15 13:27:49 -08:00
Zach Borboa de7751b4e1 Add additional test cases for Curl::diagnose() 2023-01-13 05:42:29 -08:00
Zach Borboa 422d1858d4 Only display diff after commit 2023-01-13 04:39:21 -08:00
github-actions[bot] 09e4d04872 Bump version: 9.12.6 → 9.13.0 9.13.0 2023-01-13 12:29:36 +00:00
Zach Borboa 20d50d380b Fix version bump scripts 2023-01-13 04:27:45 -08:00
Zach Borboa f2df1cf673 Include Curl::diagnose() in example 2023-01-12 08:45:07 -08:00