Update to laravel 7

This commit is contained in:
KodeStar
2022-03-10 11:54:29 +00:00
parent 61a5a1a8b0
commit f9a19fce91
7170 changed files with 274189 additions and 283773 deletions

View File

@@ -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']);