| 1 | <?php |
||
| 14 | class Swift_ByteStream_TemporaryFileByteStream extends Swift_ByteStream_FileByteStream |
||
|
|
|||
| 15 | { |
||
| 16 | 8 | public function __construct() |
|
| 26 | |||
| 27 | public function getContent() |
||
| 28 | { |
||
| 29 | if (($content = file_get_contents($this->getPath())) === false) { |
||
| 30 | throw new Swift_IoException('Failed to get temporary file content.'); |
||
| 31 | } |
||
| 32 | |||
| 33 | return $content; |
||
| 34 | } |
||
| 35 | |||
| 36 | 8 | public function __destruct() |
|
| 42 | } |
||
| 43 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.