Merge pull request #14848 from MrPetovan/bug/warnings

Ward against missing array key in Protocol\Feed
This commit is contained in:
Michael Vogel 2025-03-11 15:06:59 +01:00 committed by GitHub
commit 8620b59dcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -335,7 +335,7 @@ class Feed
private static function getTitleFromItemOrEntry(array $item, DOMXPath $xpath, string $atomns, ?DOMNode $entry): string
{
$title = (string) $item['title'];
$title = (string) ($item['title'] ?? '');
if (empty($title)) {
$title = XML::getFirstNodeValue($xpath, $atomns . ':title/text()', $entry);