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

Fixed: "Argument 1 passed to Friendica\Util\Temporal::getRelativeDate() must be of the type string, null given" #11996

Merged

Conversation

Quix0r
Copy link

@Quix0r Quix0r commented Oct 14, 2022

This is a rebased change on current develop code. The original ticket was #11900 .

@MrPetovan MrPetovan added this to the 2022.12 milestone Oct 15, 2022
@MrPetovan
Copy link
Collaborator

Please rebase on the latest develop to take into account messages.po and database.sql changes.

@MrPetovan MrPetovan added the Bug label Oct 15, 2022
- first parameter can be null
- $posted_date should not allow NULL, instead use `?? ''` instead
- this happened in e.g. 2FA app-specific password listing
@Quix0r Quix0r force-pushed the fixes/get-relative-time-null-parameter branch from 19cf4d8 to 2773ac9 Compare October 18, 2022 15:49
@MrPetovan
Copy link
Collaborator

I thought we agreed on keeping the null value possibility and testing for it first? #11900 (comment)

This would remove the need for the null coalescing operator.

- re-added `null` again friendica#11900 (comment)
- removed null coalescing operator
@Quix0r
Copy link
Author

Quix0r commented Oct 18, 2022

I was confused there. 🙄

@MrPetovan MrPetovan merged commit f3abef0 into friendica:develop Oct 18, 2022
@Quix0r Quix0r deleted the fixes/get-relative-time-null-parameter branch October 18, 2022 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants