Skip to content
Snippets Groups Projects

Issue #3519105: Fix PHP 8.4 deprecation errors

Open Peter Decuyper requested to merge issue/rat-3519105:3519105-php-8.4-deprecations into 1.0.x
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -214,7 +214,7 @@ abstract class RenderArrayBase implements RenderableInterface {
*
* @see \Drupal\Core\Render\HtmlResponseAttachmentsProcessor::processFeed
*/
public function attachFeed(string $href, string $title = NULL) {
public function attachFeed(string $href, ?string $title = NULL) {
$this->value['#attached']['feed'][] = [$href, $title];
return $this;
}
@@ -242,7 +242,7 @@ abstract class RenderArrayBase implements RenderableInterface {
* @see \Drupal\Core\Render\HtmlResponseAttachmentsProcessor::processHtmlHeadLink
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link
*/
public function attachHeadLink(string $href, string $rel, string $title = NULL, string $type = NULL, string $hreflang = NULL, bool $shouldAddHeader = FALSE, array $moreAttributes = []) {
public function attachHeadLink(string $href, string $rel, ?string $title = NULL, ?string $type = NULL, ?string $hreflang = NULL, bool $shouldAddHeader = FALSE, array $moreAttributes = []) {
$linkAttributes = [
'href' => $href,
'rel' => $rel,
Loading