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

Enforce non null @section values to prevent dangling output buffers #2764

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

DocLM
Copy link
Contributor

@DocLM DocLM commented Dec 12, 2023

Fixes #2763

Calling @section with a null value trigger a bug that does not close an output buffer, causing PHPUnit to mark tests that use this view without name or description defined to be marked as risky.

Proposed Changes

Changes introduced by d9700e9 removed the e function call that fallback to empty string when called with null.
Using a string cast force null values to be empty string.

More references: https://laracasts.com/discuss/channels/testing/test-code-or-tested-code-did-not-only-close-its-own-output-buffers-actingas

@tabuna tabuna merged commit 240712d into orchidsoftware:master Dec 13, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Tests using views from v14.16.0 are marked as risky
2 participants