Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make int ranges generic #2642

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

Open
rvanvelzen wants to merge 1 commit into phpstan:1.11.x
base: 1.11.x
Choose a base branch
Loading
from rvanvelzen:bug-6810
Open

Conversation

@rvanvelzen
Copy link
Contributor

@rvanvelzen rvanvelzen commented Sep 22, 2023

mvorisek reacted with thumbs up emoji
Copy link
Collaborator

You've opened the pull request against the latest branch 1.11.x. If your code is relevant on 1.10.x and you want it to be released sooner, please rebase your pull request and change its target to 1.10.x.

Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder - do we need a new GenericIntegerRangeType for this? Other types have a similar capability out of the box. Can we just change IntegerRangeType to support this?

Copy link
Contributor Author

I did consider that option, but given that IntegerRangeType is public api and requires ?int bounds, it didn't seem viable to me.

Copy link
Member

@rvanvelzen Can we make a new IntegerRangeType, deprecate the old one, and start using the new one everywhere? In 2.0 I'd just renamed the new one to the current IntegerRangeType name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ondrejmirtes ondrejmirtes ondrejmirtes requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Int range not generic

AltStyle によって変換されたページ (->オリジナル) /