Zach Borboa
8666fc38fb
Add exclusion to fix incorrectly flagged error
...
Error message:
FILE: ...lass/php-curl-class/tests/PHPCurlClass/PHPMultiCurlClassTest.php
----------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
----------------------------------------------------------------------
3575 | ERROR | list() will assign variable from left-to-right since
| | PHP 7.0. Ensure all variables in list() are unique to
| | prevent unexpected results.
| | (PHPCompatibility.Lists.AssignmentOrder.Affected)
[...]
----------------------------------------------------------------------
2022-09-23 10:15:20 -07:00
Zach Borboa
f1ac3a6e38
Allow plugin for phpcodesniffer
2022-09-23 09:44:54 -07:00
Zach Borboa
5bbdbe594a
Allow plugin needed for squizlabs/php_codesniffer
...
$ composer require --dev dealerdirect/phpcodesniffer-composer-installer
2022-09-23 09:33:04 -07:00
Zach Borboa
3ddc22e590
Fix installed_paths config for PHPCS23Utils
...
Fixes error:
$ ./tests/check_coding_standards.sh
PHP_CodeSniffer version 3.7.1 (stable) by Squiz (http://www.squiz.net )
ERROR: Referenced sniff "PHPCS23Utils" does not exist
Run "phpcs --help" for usage information
Error: found standard violation(s)
2022-09-23 08:25:55 -07:00
Zach Borboa
6ce21bb755
Update PHPCompatibility
...
Comment out installed_paths config to fix error:
$ ./tests/check_coding_standards.sh
PHP_CodeSniffer version 3.7.1 (stable) by Squiz (http://www.squiz.net )
ERROR: Referenced sniff "PHPCS23Utils" does not exist
Run "phpcs --help" for usage information
Error: found standard violation(s)
2022-09-23 07:59:39 -07:00
Zach Borboa
3ff53bfbdf
Replace egrep with grep --extended-regexp' (grep -E')
...
Warning message:
egrep: warning: egrep is obsolescent; using grep -E
2022-09-23 07:14:56 -07:00
Zach Borboa
aebaef528b
Add example for queuing requests dynamically
2022-09-23 07:06:39 -07:00
Zach Borboa
7f7d6f9e2c
Allow manual triggers of workflow
2022-09-22 19:29:31 -07:00
Zach Borboa
97ae4d9785
Add cron schedule to update changelog workflow
2022-09-22 19:26:04 -07:00
Zach Borboa
8363b24ad8
Add workflow and script for updating changelog
2022-09-22 19:23:39 -07:00
Zach Borboa
e8b66975d0
Fix risky test missing assertion
2022-08-23 14:19:57 -07:00
Zach Borboa
13cc782d27
Clean up example
2022-08-19 10:14:16 -04:00
Zach Borboa
f1e307dcfc
Merge pull request #728 from zachborboa/master
...
Fix building post data with object
2022-08-19 10:09:37 -04:00
Zach Borboa
c2eec0667e
Fix building post data for object
...
PHP 8 error messages:
TypeError: array_keys(): Argument #1 ($array) must be of type array, stdClass given
TypeError: array_values(): Argument #1 ($array) must be of type array, stdClass given
PHP 7 error messages:
TypeError: array_keys() expects parameter 1 to be array, object given
TypeError: array_values() expects parameter 1 to be array, object given
2022-08-19 09:46:26 -04:00
Zach Borboa
57745cabd6
Merge pull request #726 from zachborboa/master
...
Encode keys for post data with numeric keys
2022-07-29 00:44:04 -04:00
Zach Borboa
85e94ba1b1
Fix #725 : Encode keys for post data with numeric keys
2022-07-28 23:47:29 -04:00
Zach Borboa
642e232dc2
Add examples for Curl::beforeSend() and MultiCurl::beforeSend()
2022-07-01 21:38:18 -07:00
Zach Borboa
bb38a13862
Merge pull request #723 from zachborboa/master
...
Call MultiCurl::beforeSend() before each request is made
2022-07-01 13:39:23 -04:00
Zach Borboa
a33b7bde4e
Fix #707 : Call MultiCurl::beforeSend() before each request is made
2022-07-01 11:21:57 -04:00
Zach Borboa
d453257b12
Bump version: 9.6.0 → 9.6.1
9.6.1
2022-06-30 20:33:15 -04:00
Zach Borboa
38da94f9b0
Merge pull request #721 from zachborboa/master
...
Remove active curl handle when stopping requests early
2022-06-30 14:12:42 -04:00
Zach Borboa
3c9e0c7dc9
Fix #718 : Remove active curl handle when stopping requests early
...
Error message:
Warning: curl_multi_info_read(): supplied resource is not a valid
cURL handle resource in
./vendor/php-curl-class/php-curl-class/src/Curl/MultiCurl.php on
line 999
2022-06-30 13:40:27 -04:00
Zach Borboa
339909356b
Merge pull request #719 from zachborboa/master
...
Ensure cURL handle is passed to curl_multi_info_read()
2022-06-23 15:50:47 -04:00
Zach Borboa
8fdb39bbaf
Fix #718 : Ensure cURL handle is passed to curl_multi_info_read()
...
Error message:
curl_multi_info_read(): supplied resource is not a valid cURL handle resource
2022-06-23 15:24:53 -04:00
Zach Borboa
42d84d71fd
Merge pull request #717 from zachborboa/master
...
Retain keys for arrays with null values
2022-06-23 13:10:06 -04:00
Zach Borboa
30ffe42915
Fix #712 : Retain keys for arrays with null values
2022-06-23 12:44:46 -04:00
Zach Borboa
2e9c738de4
Improve future release flag warning message
2022-06-23 09:47:38 -04:00
Zach Borboa
8f7c24b71d
Add additional logging to display progression
2022-06-23 09:46:46 -04:00
Zach Borboa
79d60419e4
Merge pull request #716 from zachborboa/master
...
Attempt to stop active requests when MultiCurl::stop() is called
2022-06-23 09:34:05 -04:00
Zach Borboa
523386ec01
Fix #714 : Attempt to stop active requests when MultiCurl::stop() is called
2022-06-23 08:26:20 -04:00
Zach Borboa
9f02d09f0e
Bump version: 9.5.1 → 9.6.0
9.6.0
2022-03-17 11:17:56 -04:00
Zach Borboa
61f03a1048
Merge pull request #708 from zachborboa/master
...
Implement MultiCurl::stop()
2022-03-11 05:45:30 -08:00
Zach Borboa
12b5757c22
Implement MultiCurl::stop()
2022-03-10 18:29:48 -08:00
Zach Borboa
dc4d0db091
Rename variable
2022-03-10 18:29:40 -08:00
Zach Borboa
1b64ab6e84
Add shebang to fix bash invalid option error
...
Error:
++ declare -A pids
./run.sh: line 55: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
2022-03-10 18:17:03 -08:00
Zach Borboa
7455872464
Merge pull request #703 from zachborboa/master
...
Add example for processing requests later
2021-12-29 11:16:56 -05:00
Zach Borboa
e2408025b8
Fix #702 : Add example for processing requests later
2021-12-29 07:48:52 -08:00
Zach Borboa
a0a3f2b10b
Bump version: 9.5.0 → 9.5.1
9.5.1
2021-12-14 11:26:30 -05:00
Zach Borboa
f73b978762
Merge pull request #691 from 3kbest/pr8.1
...
silence PHP 8.1 deprecations
2021-11-27 18:32:27 -05:00
Eirik Besteland
dce71a0c2f
php8.1 ReturnTypeWillChange - not use "use ReturnTypeWillChange;"
2021-11-27 23:49:35 +01:00
Zach Borboa
733319eb1d
Update matrix strategy key name
2021-11-26 23:38:47 -05:00
Zach Borboa
eb13430bf6
Merge pull request #696 from zachborboa/master
...
Add static analysis checks to continuous integration
2021-11-26 13:38:41 -05:00
Zach Borboa
c975670b97
Run psalm on PHP >= 7.1
...
Error message:
PHP Fatal error: Uncaught Psalm\Exception\ConfigException: Error
parsing file /home/runner/work/php-curl-class/php-curl-class/ on
line 8: Element '{https://getpsalm.org/schema/config }psalm': No
matching global declaration available for the validation root.
2021-11-26 08:49:03 -05:00
Zach Borboa
d79fb1689f
Skip running static analysis checks on future releases
2021-11-25 23:52:55 -05:00
Zach Borboa
b27c29b5ec
Fix psalm UndefinedClass errors
...
Messages:
ERROR: UndefinedClass - src/Curl/Curl.php:217:64 - Class, interface or enum named CurlHandle does not exist (see https://psalm.dev/019 )
if (is_resource($this->curl) || $this->curl instanceof \CurlHandle) {
ERROR: UndefinedClass - src/Curl/Curl.php:1570:64 - Class, interface or enum named CurlHandle does not exist (see https://psalm.dev/019 )
if (is_resource($this->curl) || $this->curl instanceof \CurlHandle) {
ERROR: UndefinedClass - src/Curl/MultiCurl.php:396:74 - Class, interface or enum named CurlMultiHandle does not exist (see https://psalm.dev/019 )
if (is_resource($this->multiCurl) || $this->multiCurl instanceof \CurlMultiHandle) {
2021-11-25 23:16:35 -05:00
Zach Borboa
23ce1726b3
Fix psalm error: InvalidParamDefault
2021-11-25 20:25:08 -05:00
Zach Borboa
5087a6b6d8
Add static analysis checks to continuous integration
2021-11-25 19:32:50 -05:00
Zach Borboa
d0ea9779c4
Merge pull request #695 from zachborboa/master
...
Move PHP 8.1 out of future release
2021-11-25 14:34:25 -05:00
Zach Borboa
8b16eb7207
Add PHP 8.1 to list of compatible versions
2021-11-25 14:05:58 -05:00
Zach Borboa
04637b3058
Move PHP 8.1 out of future release
2021-11-25 13:42:01 -05:00