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

Fix deprecation notice #10921

Merged
merged 4 commits into from Jul 5, 2022
Merged

Fix deprecation notice #10921

merged 4 commits into from Jul 5, 2022

Conversation

fluffycondor
Copy link
Contributor

Deprecation Notice: trim(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///usr/bin/composer/src/Composer/Util/GitHub.php:103

Deprecation Notice: trim(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///usr/bin/composer/src/Composer/Util/GitHub.php:103
@stof
Copy link
Contributor

stof commented Jul 4, 2022

This will break if someone enters only spaces, as you will still end up with an empty token by turning it empty after the validation.

@Seldaek Seldaek added this to the 2.2 milestone Jul 4, 2022
@Seldaek Seldaek added the Bug label Jul 4, 2022
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
@Seldaek Seldaek merged commit 3ebd66b into composer:2.2 Jul 5, 2022
@Seldaek
Copy link
Member

Seldaek commented Jul 5, 2022

Thanks

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 this pull request may close these issues.

None yet

3 participants