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

Lolli 14 #14

Merged
merged 8 commits into from
Oct 23, 2021
Merged

Lolli 14 #14

merged 8 commits into from
Oct 23, 2021

Conversation

lolli42
Copy link
Owner

@lolli42 lolli42 commented Oct 23, 2021

No description provided.

This is a drop in replacement if php-mbstring is
not available. Using symfony/polyfill-mbstring we
avoid the hard dependency to php-mbstring.

composer req symfony/polyfill-mbstring
extractFragments() is only called from within
diff(), which tests for empty $delimiters aleady,
the if body in extractFragments() can't be reached.

Avoids call to non-multibyte safe str_split().
Adds type hints where possible. Main methods like
Diff->render() now accept strings and similar.

Enables phpstan level 6.

This is b/w compat breaking since types
are now enforced.
@lolli42 lolli42 merged commit c2f1674 into master Oct 23, 2021
@lolli42 lolli42 deleted the lolli-14 branch October 23, 2021 14:09
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.

1 participant