Skip to content

Fix curl-share handling on PHP < 8.5 #548

Fix curl-share handling on PHP < 8.5

Fix curl-share handling on PHP < 8.5 #548

Triggered via pull request December 4, 2025 06:33
@staabmstaabm
synchronize #173
fix-share
Status Failure
Total duration 30s
Artifacts

static-analysis.yml

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

Annotations

12 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#L16
Property staabm\PHPStanTodoBy\utils\HttpClient::$shareHandle has unknown class CurlShareHandle as its type.
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)
Process completed with exit code 1.
phpstan static code analysis (ubuntu-latest, 8.5): src/utils/HttpClient.php#L28
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#L16
Property staabm\PHPStanTodoBy\utils\HttpClient::$shareHandle (CurlShareHandle|resource|null) is never assigned resource so it can be removed from the property type.
phpstan static code analysis (ubuntu-latest, 8.4)
The strategy configuration was canceled because "phpstan.ubuntu-latest_7_4" failed
phpstan static code analysis (ubuntu-latest, 8.4)
The operation was canceled.
phpstan static code analysis (ubuntu-latest, 8.0)
The strategy configuration was canceled because "phpstan.ubuntu-latest_7_4" failed
phpstan static code analysis (ubuntu-latest, 8.0)
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.