Skip to content

Commit

Permalink
Use literal-string for Document::fromString() $markup
Browse files Browse the repository at this point in the history
  • Loading branch information
craigfrancis authored Aug 13, 2023
1 parent 2df11d1 commit a12b964
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/document/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
final readonly class Document {
public const XMLNS = 'https://templado.io/document/1.0';

/**
* @param literal-string $markup
*/
public static function fromString(string $markup, ?Id $id = null): self {
libxml_use_internal_errors(true);
libxml_clear_errors();
Expand Down

0 comments on commit a12b964

Please sign in to comment.