Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PlantUmlDumper: use str_starts_with() #44476

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

Closed
wants to merge 1 commit into from

Conversation

alexislefebvre
Copy link
Contributor

@alexislefebvre alexislefebvre commented Dec 6, 2021

instead of substr()

Q A
Branch? 6.1 for features
Bug fix? no
New feature? no
Deprecations? no
Tickets no
License MIT
Doc PR no

Use str_starts_with() instead of substr() (in a code I wrote a while ago for #29538).

Copy link
Contributor

@fancyweb fancyweb left a comment

Choose a reason for hiding this comment

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

Hello, thank you for updating your previous work. I think the PR should target 4.4 and symfony/polyfill-php80 should be required, check #41576 for inspiration.

Also I think you can replace more occurrences (if you have time :-)) where substr is used instead of str_starts_with and str_ends_with, there are probably some others.

@alexislefebvre
Copy link
Contributor Author

alexislefebvre commented Dec 6, 2021

Thanks for the review, I targeted the last branch because it didn't look like a bug fix.

Let's do this in #44482

@alexislefebvre alexislefebvre deleted the patch-1 branch December 6, 2021 20:06
GromNaN added a commit that referenced this pull request Dec 7, 2021
This PR was squashed before being merged into the 6.1 branch.

Discussion
----------

Use str_ends_with() and str_starts_with()

| Q             | A
| ------------- | ---
| Branch?       | 6.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | no
| License       | MIT
| Doc PR        | no

Use `str_ends_with()` and `str_starts_with()` instead of `substr()`.

(replaces #44482 and #44476 🥲)

Commits
-------

28d4d6b Use str_ends_with() and str_starts_with()
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.

2 participants