Skip to content

Fix curl-share handling on PHP < 8.5 #547

Fix curl-share handling on PHP < 8.5

Fix curl-share handling on PHP < 8.5 #547

Triggered via pull request December 4, 2025 06:30
Status Failure
Total duration 31s
Artifacts

static-analysis.yml

on: pull_request
Matrix: phpstan static code analysis
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan static code analysis (ubuntu-latest, 7.4)
Process completed with exit code 1.
phpstan static code analysis (ubuntu-latest, 7.4): src/utils/HttpClient.php#L14
Property staabm\PHPStanTodoBy\utils\HttpClient::$shareHandle has unknown class CurlShareHandle as its type.
phpstan static code analysis (ubuntu-latest, 8.3)
The strategy configuration was canceled because "phpstan.ubuntu-latest_7_4" failed
phpstan static code analysis (ubuntu-latest, 8.3)
The operation was canceled.
phpstan static code analysis (ubuntu-latest, 8.1)
The strategy configuration was canceled because "phpstan.ubuntu-latest_7_4" failed
phpstan static code analysis (ubuntu-latest, 8.1)
The operation was canceled.
phpstan static code analysis (ubuntu-latest, 8.5)
The strategy configuration was canceled because "phpstan.ubuntu-latest_7_4" failed
phpstan static code analysis (ubuntu-latest, 8.5)
The operation was canceled.
phpstan static code analysis (ubuntu-latest, 8.5): src/utils/HttpClient.php#L26
Property staabm\PHPStanTodoBy\utils\HttpClient::$shareHandle (CurlShareHandle|resource|null) does not accept CurlSharePersistentHandle.
phpstan static code analysis (ubuntu-latest, 8.5): src/utils/HttpClient.php#L14
Property staabm\PHPStanTodoBy\utils\HttpClient::$shareHandle (CurlShareHandle|resource|null) is never assigned resource so it can be removed from the property type.