Skip to content
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

unset autoload-dev.classmap via cli command #11852

Closed
staabm opened this issue Feb 14, 2024 · 0 comments · Fixed by #11967
Closed

unset autoload-dev.classmap via cli command #11852

staabm opened this issue Feb 14, 2024 · 0 comments · Fixed by #11967
Labels
Milestone

Comments

@staabm
Copy link
Contributor

staabm commented Feb 14, 2024

My composer.json:

{
	"autoload-dev": {
		"psr-4": {
			"PHPStan\\": [
				"build/PHPStan"
			]
		},
		"classmap": [
			"tests/e2e",
			"tests/PHPStan"
		]
	}
}

Output of composer diagnose:

$ composer diagnose
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK git version 2.43.0
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com oauth access: OK does not expire
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking Composer version: You are not running the latest stable version, run `composer self-update` to update (2.7.0 => 2.7.1)
Checking Composer and its dependencies for vulnerabilities: WARNING
Could not find Composer's installed.json, this must be a non-standard Composer installation.
Composer version: 2.7.0
PHP version: 8.2.12
PHP binary path: C:\tools\php82\php.exe
OpenSSL version: OpenSSL 3.0.11 19 Sep 2023
cURL version: 8.4.0 libz 1.2.12 ssl OpenSSL/3.0.11
zip: extension present, unzip present, 7-Zip present (7z)

When I run this command:

composer config autoload-dev.classmap --unset

I get :

  • no change in composer.json

And I expected this to happen:

  • the autoload-dev.classmap part should be deleted from the composer.json

running just composer config autoload-dev --unset works as expected and drops the whole section.
composer config scripts.post-install-cmd --unset also works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants