Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Mar 13, 2022

first str-family-function to infer non-empty-string type.

Initially had the idea of putting everything into a single StrFamily* extension, but then figured that the semantics between substr, substring, strpos, stripos, str_contains etc are too different, and it would be more readable to put each of them into a separate extension.

therefore this is the first PR. if merged, I will work on similar semantics for the remaining functions

refs phpstan/phpstan#6792

@staabm staabm force-pushed the strfn-specifiying branch 4 times, most recently from 43ee591 to 4033f21 Compare March 13, 2022 08:47
@herndlm
Copy link
Contributor

herndlm commented Mar 13, 2022

Nice! The minute this is merged I'm going to add the correspondent phpstan-webmozart-assert support :)

@ondrejmirtes
Copy link
Member

Hi, if you base this on 1.4.x, it's gonna be released sooner 😊

@staabm
Copy link
Contributor Author

staabm commented Mar 13, 2022

Ohh I see. Thought 1.4.x is meant for bugfix only and 1.5.x for new features

@ondrejmirtes
Copy link
Member

That line is blurred here - you could look at this and consider it a bugfix too.

@staabm staabm changed the base branch from 1.5.x to 1.4.x March 13, 2022 09:52
@staabm staabm force-pushed the strfn-specifiying branch from 4033f21 to 46a7c35 Compare March 13, 2022 09:53
@staabm staabm force-pushed the strfn-specifiying branch from 46a7c35 to a6a4fed Compare March 13, 2022 09:56
@staabm staabm closed this Mar 13, 2022
@staabm staabm deleted the strfn-specifiying branch March 13, 2022 09:57
@staabm staabm restored the strfn-specifiying branch March 13, 2022 09:57
@staabm
Copy link
Contributor Author

staabm commented Mar 13, 2022

mixed it up a bit. re-opened as a new PR for 1.4.x in #1068

@staabm staabm deleted the strfn-specifiying branch March 16, 2022 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants