@@ -392,7 +392,7 @@ public function jsonSerialize(): array
392
392
];
393
393
}
394
394
395
- public function setAuthor (string $ author = null ): self
395
+ public function setAuthor (? string $ author = null ): self
396
396
{
397
397
if (!is_null ($ author )) {
398
398
$ author = strip_tags ($ author );
@@ -406,7 +406,7 @@ public function setAuthor(string $author = null): self
406
406
return $ this ;
407
407
}
408
408
409
- public function setBody (string $ body = null ): self
409
+ public function setBody (? string $ body = null ): self
410
410
{
411
411
// FIXME: this should not happen if the target="_blank" is already
412
412
// on the link
@@ -420,7 +420,7 @@ public function setBody(string $body = null): self
420
420
return $ this ;
421
421
}
422
422
423
- public function setContentHash (string $ contentHash = null ): self
423
+ public function setContentHash (? string $ contentHash = null ): self
424
424
{
425
425
if ($ this ->contentHash !== $ contentHash ) {
426
426
$ this ->contentHash = $ contentHash ;
@@ -430,7 +430,7 @@ public function setContentHash(string $contentHash = null): self
430
430
return $ this ;
431
431
}
432
432
433
- public function setEnclosureLink (string $ enclosureLink = null ): self
433
+ public function setEnclosureLink (? string $ enclosureLink = null ): self
434
434
{
435
435
if ($ this ->enclosureLink !== $ enclosureLink ) {
436
436
$ this ->enclosureLink = $ enclosureLink ;
@@ -440,7 +440,7 @@ public function setEnclosureLink(string $enclosureLink = null): self
440
440
return $ this ;
441
441
}
442
442
443
- public function setEnclosureMime (string $ enclosureMime = null ): self
443
+ public function setEnclosureMime (? string $ enclosureMime = null ): self
444
444
{
445
445
if ($ this ->enclosureMime !== $ enclosureMime ) {
446
446
$ this ->enclosureMime = $ enclosureMime ;
@@ -450,7 +450,7 @@ public function setEnclosureMime(string $enclosureMime = null): self
450
450
return $ this ;
451
451
}
452
452
453
- public function setMediaThumbnail (string $ mediaThumbnail = null ): self
453
+ public function setMediaThumbnail (? string $ mediaThumbnail = null ): self
454
454
{
455
455
if ($ this ->mediaThumbnail !== $ mediaThumbnail ) {
456
456
$ this ->mediaThumbnail = $ mediaThumbnail ;
@@ -460,7 +460,7 @@ public function setMediaThumbnail(string $mediaThumbnail = null): self
460
460
return $ this ;
461
461
}
462
462
463
- public function setMediaDescription (string $ mediaDescription = null ): self
463
+ public function setMediaDescription (? string $ mediaDescription = null ): self
464
464
{
465
465
if ($ this ->mediaDescription !== $ mediaDescription ) {
466
466
$ this ->mediaDescription = $ mediaDescription ;
@@ -480,7 +480,7 @@ public function setFeedId(int $feedId): self
480
480
return $ this ;
481
481
}
482
482
483
- public function setFingerprint (string $ fingerprint = null ): self
483
+ public function setFingerprint (? string $ fingerprint = null ): self
484
484
{
485
485
if ($ this ->fingerprint !== $ fingerprint ) {
486
486
$ this ->fingerprint = $ fingerprint ;
@@ -510,7 +510,7 @@ public function setGuidHash(string $guidHash): self
510
510
return $ this ;
511
511
}
512
512
513
- public function setLastModified (string $ lastModified = null ): self
513
+ public function setLastModified (? string $ lastModified = null ): self
514
514
{
515
515
if ($ this ->lastModified !== $ lastModified ) {
516
516
$ this ->lastModified = $ lastModified ;
@@ -520,7 +520,7 @@ public function setLastModified(string $lastModified = null): self
520
520
return $ this ;
521
521
}
522
522
523
- public function setPubDate (int $ pubDate = null ): self
523
+ public function setPubDate (? int $ pubDate = null ): self
524
524
{
525
525
if ($ this ->pubDate !== $ pubDate ) {
526
526
$ this ->pubDate = $ pubDate ;
@@ -540,7 +540,7 @@ public function setRtl(bool $rtl): self
540
540
return $ this ;
541
541
}
542
542
543
- public function setSearchIndex (string $ searchIndex = null ): self
543
+ public function setSearchIndex (? string $ searchIndex = null ): self
544
544
{
545
545
if ($ this ->searchIndex !== $ searchIndex ) {
546
546
$ this ->searchIndex = $ searchIndex ;
@@ -560,7 +560,7 @@ public function setStarred(bool $starred): self
560
560
return $ this ;
561
561
}
562
562
563
- public function setTitle (string $ title = null ): self
563
+ public function setTitle (? string $ title = null ): self
564
564
{
565
565
if (!is_null ($ title )) {
566
566
$ title = trim (strip_tags ($ title ));
@@ -574,7 +574,7 @@ public function setTitle(string $title = null): self
574
574
return $ this ;
575
575
}
576
576
577
- public function setSharedBy (string $ sharedBy = null ): self
577
+ public function setSharedBy (? string $ sharedBy = null ): self
578
578
{
579
579
if ($ this ->sharedBy !== $ sharedBy ) {
580
580
$ this ->sharedBy = $ sharedBy ;
@@ -584,7 +584,7 @@ public function setSharedBy(string $sharedBy = null): self
584
584
return $ this ;
585
585
}
586
586
587
- public function setSharedByDisplayName (string $ sharedByDisplayName = null ): self
587
+ public function setSharedByDisplayName (? string $ sharedByDisplayName = null ): self
588
588
{
589
589
if ($ this ->sharedByDisplayName !== $ sharedByDisplayName ) {
590
590
$ this ->sharedByDisplayName = $ sharedByDisplayName ;
@@ -603,7 +603,7 @@ public function setUnread(bool $unread): self
603
603
return $ this ;
604
604
}
605
605
606
- public function setUrl (string $ url = null ): self
606
+ public function setUrl (? string $ url = null ): self
607
607
{
608
608
if (is_null ($ url )) {
609
609
return $ this ;
@@ -620,7 +620,7 @@ public function setUrl(string $url = null): self
620
620
return $ this ;
621
621
}
622
622
623
- public function setCategoriesJson (string $ categoriesJson = null ): self
623
+ public function setCategoriesJson (? string $ categoriesJson = null ): self
624
624
{
625
625
if ($ this ->categoriesJson !== $ categoriesJson ) {
626
626
$ this ->categoriesJson = $ categoriesJson ;
@@ -630,7 +630,7 @@ public function setCategoriesJson(string $categoriesJson = null): self
630
630
return $ this ;
631
631
}
632
632
633
- public function setCategories (array $ categories = null ): self
633
+ public function setCategories (? array $ categories = null ): self
634
634
{
635
635
$ categoriesJson = !is_null ($ categories ) ? json_encode ($ categories ) : null ;
636
636
$ this ->setCategoriesJson ($ categoriesJson );
0 commit comments