mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-03 05:29:53 +09:00
Update to laravel 7
This commit is contained in:
10
vendor/symfony/mime/CharacterStream.php
vendored
10
vendor/symfony/mime/CharacterStream.php
vendored
@@ -16,8 +16,6 @@ namespace Symfony\Component\Mime;
|
||||
* @author Xavier De Cock <xdecock@gmail.com>
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @experimental in 4.3
|
||||
*/
|
||||
final class CharacterStream
|
||||
{
|
||||
@@ -99,10 +97,7 @@ final class CharacterStream
|
||||
}
|
||||
}
|
||||
if (\is_resource($input)) {
|
||||
$blocks = 512;
|
||||
if (stream_get_meta_data($input)['seekable'] ?? false) {
|
||||
rewind($input);
|
||||
}
|
||||
$blocks = 16372;
|
||||
while (false !== $read = fread($input, $blocks)) {
|
||||
$this->write($read);
|
||||
}
|
||||
@@ -116,7 +111,6 @@ final class CharacterStream
|
||||
if ($this->currentPos >= $this->charCount) {
|
||||
return null;
|
||||
}
|
||||
$ret = null;
|
||||
$length = ($this->currentPos + $length > $this->charCount) ? $this->charCount - $this->currentPos : $length;
|
||||
if ($this->fixedWidth > 0) {
|
||||
$len = $length * $this->fixedWidth;
|
||||
@@ -177,7 +171,7 @@ final class CharacterStream
|
||||
$this->dataSize = \strlen($this->data) - \strlen($ignored);
|
||||
}
|
||||
|
||||
private function getUtf8CharPositions(string $string, int $startOffset, &$ignoredChars): int
|
||||
private function getUtf8CharPositions(string $string, int $startOffset, string &$ignoredChars): int
|
||||
{
|
||||
$strlen = \strlen($string);
|
||||
$charPos = \count($this->map['p']);
|
||||
|
||||
Reference in New Issue
Block a user