New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZipArchiver::supports(): Argument #2 ($sourceType) must be of type string, null given #10702
Comments
Hi, we've faced the same issue and we saw that in PharArchiver::supports the second passed argument from ArchiveManager::archive (line 100) is null. We are also wondering why sourceType is passed if is not used? |
this occurred in my CI-build where i used
i'm unsure what composer image version was used in on the original :2 version spec but perhaps this helps my stacktrace
weird quirk in my case; it specifically failed on the tag-build, in both cases |
ok; locally also reproducable when no |
composer.json {
"name": "test",
"support": {
"email": "github@tubby.nl"
},
"require": {
"php": ">=8.1"
},
"require-dev": {
"phpunit/phpunit": "^9"
},
"config": {
"archive-format": "zip"
},
"archive": {
"name": "test"
}
} composer archive
# fails
git init
git add .
git commit -m "init"
composer archive
# works
composer config version 1.0.0
composer archive
# fails |
i can verify it is fixed in 2.3.4 , tnx @Seldaek ! |
Output of
composer diagnose
:When I run this command:
I get the following output:
The text was updated successfully, but these errors were encountered: