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

RexStan-Überprüfung: fragments/neues/entry.php #106

Merged
merged 2 commits into from
Sep 8, 2024
Merged

RexStan-Überprüfung: fragments/neues/entry.php #106

merged 2 commits into from
Sep 8, 2024

Conversation

christophboecker
Copy link
Member

'Only booleans are allowed in an if condition, string given.'

Da $post->getPublishDate() immer einen String liefert, besser auf "nicht ''" abfragen.

'Only booleans are allowed in an if condition, array|null given.'

$post->getImages() liefert real immer ein Array. Somit reicht es aus, hier auf
ein leeres Array zu prüfen. Damit das Array nicht zweimal erzeugt und abgerufen wird, dient $images als Zwischenspeicher.

@alxndr-w alxndr-w merged commit 7bfe6f8 into main Sep 8, 2024
@alxndr-w alxndr-w deleted the cb-12 branch September 8, 2024 13:11
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