Skip to content

Commit

Permalink
Style: Use getNonce() instead of accessing $nonce directly
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Sep 8, 2023
1 parent 9d64ddd commit 1895d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Style.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function render(): string

return (new HtmlElement(
'style',
(new Attributes())->addAttribute(new Attribute('nonce', $this->nonce)),
(new Attributes())->addAttribute(new Attribute('nonce', $this->getNonce())),
HtmlString::create($ruleset->renderCss())
))->render();
}
Expand Down

0 comments on commit 1895d76

Please sign in to comment.