8000 Fix type of $learnedLiterals to avoid issues by Seldaek · Pull Request #12121 · composer/composer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix type of $learnedLiterals to avoid issues #12121

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

Merged
merged 5 commits into from
Sep 21, 2024
Merged

Conversation

Seldaek
Copy link
Member
@Seldaek Seldaek commented Sep 19, 2024

It's probably the 3rd time I look at that code because of some PHPStan error caused by this weird array with [null|int, ...int] which cannot be expressed as a type.. So I finally decided to fix it. I'm not sure if you have a better name than $mainLiteral @naderman ?

Copy link
private-packagist bot commented Sep 19, 2024

composer.lock

Package changes

Package Operation From To About
composer/semver upgrade 3.4.2 3.4.3 diff

Dev Package changes

Package Operation From To About
phpstan/phpstan upgrade 1.12.3 1.12.4 diff

Settings · Docs · Powered by Private Packagist

@Seldaek Seldaek added this to the 2.8 milestone Sep 19, 2024
Copy link

The composer.lock diff comment has been updated to reflect new changes in this PR.

@Seldaek
Copy link
Member Author
Seldaek commented Sep 19, 2024

Ok some scope creep later.. I reviewed and fixed all but 5 phpstan errors in the entire DependencyResolver namespace :)

@Seldaek Seldaek requested a review from naderman September 19, 2024 15:06
@Seldaek Seldaek merged commit 6b81140 into composer:main Sep 21, 2024
20 checks passed
@Seldaek Seldaek deleted the fix_type branch September 21, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0