From 67cba0b0915f3374eb827c023eddadee3601027a Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Mon, 9 Dec 2024 23:20:09 +0100 Subject: [PATCH] Make the `SourceFile` constructor private --- src/SourceFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SourceFile.php b/src/SourceFile.php index 8f37cbe..33bc550 100644 --- a/src/SourceFile.php +++ b/src/SourceFile.php @@ -32,7 +32,7 @@ public static function fromString(string $content, ?UriInterface $sourceUrl = nu return new SourceFile($content, $sourceUrl); } - public function __construct(string $content, ?UriInterface $sourceUrl = null) + private function __construct(string $content, ?UriInterface $sourceUrl = null) { $this->string = $content; $this->sourceUrl = $sourceUrl;