| Author | Dave Jarvis <email> |
|---|---|
| Date | 2026-02-20 23:50:40 GMT-0800 |
| Commit | ef7a6e8328cda24f1b8fe4c6d643c0c1d3ce0989 |
| Parent | 48707a6 |
| private bool $binary; | ||
| - private static ?finfo $finfo = new finfo( FILEINFO_MIME_TYPE ); | ||
| + private static ?finfo $finfo = null; | ||
| public function __construct( | ||
| string $name, | ||
| string $sha, | ||
| string $mode, | ||
| int $timestamp, | ||
| int $size, | ||
| string $contents = '' | ||
| ) { | ||
| + self::$finfo ??= new finfo( FILEINFO_MIME_TYPE ); | ||
| + | ||
| $this->name = $name; | ||
| $this->sha = $sha; | ||
| }); | ||
| } | ||
| - | ||
| private function detectMediaType( string $buffer ): string { | ||
| Delta | 3 lines added, 2 lines removed, 1-line increase |
|---|