Skip to content

fix: silence warning for answers to deleted questions - #3727

Merged
Chartman123 merged 1 commit into
mainfrom
fix/array_offset_null
Oct 6, 2026
Merged

Chartman123 merged 1 commit into
mainfrom
fix/array_offset_null

Conversation

@Chartman123

Copy link
Copy Markdown
Collaborator

This fixes #3713.

Handle cases where answers reference deleted questions by ensuring the question name is set to null instead of causing a warning.

…ll submissions

Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
@Chartman123 Chartman123 added bug Something isn't working php PHP related ticket labels Oct 5, 2026
@Chartman123
Chartman123 requested a review from Koc October 5, 2026 22:30
@Chartman123 Chartman123 added the 3. to review Waiting for reviews label Oct 5, 2026
@Chartman123
Chartman123 requested a review from samin-z October 5, 2026 22:30
@Chartman123 Chartman123 self-assigned this Oct 5, 2026

@Chartman123 Chartman123 left a comment •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/backport to stable5.4

@Chartman123 Chartman123 changed the title fix: Silence warning for answers to deleted questions fix: silence warning for answers to deleted questions Oct 5, 2026
@codecov

codecov Bot commented Oct 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
lib/Controller/ApiController.php 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@Chartman123
Chartman123 merged commit b4d970e into main Oct 6, 2026
48 of 51 checks passed
@Chartman123
Chartman123 deleted the fix/array_offset_null branch October 6, 2026 09:38
@Chartman123

Copy link
Copy Markdown
Collaborator Author

/backport to stable5.4

@backportbot backportbot Bot added the backport-request Pending backport by the backport-bot label Oct 6, 2026
@backportbot backportbot Bot removed the backport-request Pending backport by the backport-bot label Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working php PHP related ticket

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Trying to access array offset on value of type null when submissions for deleted questions exist

2 participants