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

Fix to deprecated function call #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aSeriousDeveloper
Copy link

I received warnings in my logs about a deprecated function call:

LOG.warning: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/vendor/ueberdosis/tiptap-php/src/Utils/HTML.php on line 28

On this same line, I noticed there's an already existing coalesce for an rtrim function, for the style attribute.
I simply did the same method of coalescing the value variable to an empty string if it's null.

Passing null to rtrim is deprecated
this coalesces null values to an empty string
@aSeriousDeveloper
Copy link
Author

aSeriousDeveloper commented Dec 11, 2024

Hi, any chance this can get reviewed? I'm still receiving a fair amount of deprecation warnings in logs for my projects and this fix would help resolve them.

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