Skip to content

Commit f08fc78

Browse files
authored
Merge pull request #1 from stof/private_constructor
Make the `SourceFile` constructor private
2 parents 4807f9d + 67cba0b commit f08fc78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/SourceFile.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function fromString(string $content, ?UriInterface $sourceUrl = nu
3232
return new SourceFile($content, $sourceUrl);
3333
}
3434

35-
public function __construct(string $content, ?UriInterface $sourceUrl = null)
35+
private function __construct(string $content, ?UriInterface $sourceUrl = null)
3636
{
3737
$this->string = $content;
3838
$this->sourceUrl = $sourceUrl;

0 commit comments

Comments
 (0)