danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.87k stars 661 forks source link

Unable to integrate with laravel via composer #1195

Closed shirakun closed 2 years ago

shirakun commented 2 years ago

I followed the documentation and tried to integrate it with laravel. https://docs.madelineproto.xyz/docs/INSTALLATION.html#composer-from-existing-project

But I encountered this error.

www@work:/mnt/e/website/tgbot$ composer create-project laravel/laravel .
Creating a "laravel/laravel" project at "./"
Info from https://repo.packagist.org: #StandWithUkraine
Installing laravel/laravel (v8.6.12)
  - Installing laravel/laravel (v8.6.12): Extracting archive
Created project in /mnt/e/website/tgbot/.
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Lock file operations: 110 installs, 0 updates, 0 removals
  - Locking asm89/stack-cors (v2.1.1)
  - Locking brick/math (0.9.3)
  - Locking dflydev/dot-access-data (v3.0.1)
  - Locking doctrine/inflector (2.0.4)
  - Locking doctrine/instantiator (1.4.1)
  - Locking doctrine/lexer (1.2.3)
  - Locking dragonmantank/cron-expression (v3.3.1)
  - Locking egulias/email-validator (2.1.25)
  - Locking facade/flare-client-php (1.10.0)
  - Locking facade/ignition (2.17.6)
  - Locking facade/ignition-contracts (1.0.2)
  - Locking fakerphp/faker (v1.20.0)
  - Locking filp/whoops (2.14.5)
  - Locking fruitcake/laravel-cors (v2.2.0)
  - Locking graham-campbell/result-type (v1.1.0)
  - Locking guzzlehttp/guzzle (7.4.5)
  - Locking guzzlehttp/promises (1.5.1)
  - Locking guzzlehttp/psr7 (2.4.0)
  - Locking hamcrest/hamcrest-php (v2.0.1)
  - Locking laravel/framework (v8.83.23)
  - Locking laravel/sail (v1.15.2)
  - Locking laravel/sanctum (v2.15.1)
  - Locking laravel/serializable-closure (v1.2.0)
  - Locking laravel/tinker (v2.7.2)
  - Locking league/commonmark (2.3.5)
  - Locking league/config (v1.1.1)
  - Locking league/flysystem (1.1.9)
  - Locking league/mime-type-detection (1.11.0)
  - Locking mockery/mockery (1.5.0)
  - Locking monolog/monolog (2.8.0)
  - Locking myclabs/deep-copy (1.11.0)
  - Locking nesbot/carbon (2.61.0)
  - Locking nette/schema (v1.2.2)
  - Locking nette/utils (v3.2.7)
  - Locking nikic/php-parser (v4.14.0)
  - Locking nunomaduro/collision (v5.11.0)
  - Locking opis/closure (3.6.3)
  - Locking phar-io/manifest (2.0.3)
  - Locking phar-io/version (3.2.1)
  - Locking phpdocumentor/reflection-common (2.2.0)
  - Locking phpdocumentor/reflection-docblock (5.3.0)
  - Locking phpdocumentor/type-resolver (1.6.1)
  - Locking phpoption/phpoption (1.9.0)
  - Locking phpspec/prophecy (v1.15.0)
  - Locking phpunit/php-code-coverage (9.2.15)
  - Locking phpunit/php-file-iterator (3.0.6)
  - Locking phpunit/php-invoker (3.1.1)
  - Locking phpunit/php-text-template (2.0.4)
  - Locking phpunit/php-timer (5.0.3)
  - Locking phpunit/phpunit (9.5.21)
  - Locking psr/container (1.1.2)
  - Locking psr/event-dispatcher (1.0.0)
  - Locking psr/http-client (1.0.1)
  - Locking psr/http-factory (1.0.1)
  - Locking psr/http-message (1.0.1)
  - Locking psr/log (1.1.4)
  - Locking psr/simple-cache (1.0.1)
  - Locking psy/psysh (v0.11.8)
  - Locking ralouphie/getallheaders (3.0.3)
  - Locking ramsey/collection (1.2.2)
  - Locking ramsey/uuid (4.2.3)
  - Locking sebastian/cli-parser (1.0.1)
  - Locking sebastian/code-unit (1.0.8)
  - Locking sebastian/code-unit-reverse-lookup (2.0.3)
  - Locking sebastian/comparator (4.0.6)
  - Locking sebastian/complexity (2.0.2)
  - Locking sebastian/diff (4.0.4)
  - Locking sebastian/environment (5.1.4)
  - Locking sebastian/exporter (4.0.4)
  - Locking sebastian/global-state (5.0.5)
  - Locking sebastian/lines-of-code (1.0.3)
  - Locking sebastian/object-enumerator (4.0.4)
  - Locking sebastian/object-reflector (2.0.4)
  - Locking sebastian/recursion-context (4.0.4)
  - Locking sebastian/resource-operations (3.0.3)
  - Locking sebastian/type (3.0.0)
  - Locking sebastian/version (3.0.2)
  - Locking swiftmailer/swiftmailer (v6.3.0)
  - Locking symfony/console (v5.4.11)
  - Locking symfony/css-selector (v5.4.11)
  - Locking symfony/deprecation-contracts (v2.5.2)
  - Locking symfony/error-handler (v5.4.11)
  - Locking symfony/event-dispatcher (v5.4.9)
  - Locking symfony/event-dispatcher-contracts (v2.5.2)
  - Locking symfony/finder (v5.4.11)
  - Locking symfony/http-foundation (v5.4.11)
  - Locking symfony/http-kernel (v5.4.11)
  - Locking symfony/mime (v5.4.11)
  - Locking symfony/polyfill-ctype (v1.26.0)
  - Locking symfony/polyfill-iconv (v1.26.0)
  - Locking symfony/polyfill-intl-grapheme (v1.26.0)
  - Locking symfony/polyfill-intl-idn (v1.26.0)
  - Locking symfony/polyfill-intl-normalizer (v1.26.0)
  - Locking symfony/polyfill-mbstring (v1.26.0)
  - Locking symfony/polyfill-php72 (v1.26.0)
  - Locking symfony/polyfill-php73 (v1.26.0)
  - Locking symfony/polyfill-php80 (v1.26.0)
  - Locking symfony/polyfill-php81 (v1.26.0)
  - Locking symfony/process (v5.4.11)
  - Locking symfony/routing (v5.4.11)
  - Locking symfony/service-contracts (v2.5.2)
  - Locking symfony/string (v5.4.11)
  - Locking symfony/translation (v5.4.11)
  - Locking symfony/translation-contracts (v2.5.2)
  - Locking symfony/var-dumper (v5.4.11)
  - Locking theseer/tokenizer (1.2.1)
  - Locking tijsverkoyen/css-to-inline-styles (2.2.4)
  - Locking vlucas/phpdotenv (v5.4.1)
  - Locking voku/portable-ascii (1.6.1)
  - Locking webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 110 installs, 0 updates, 0 removals
  - Installing doctrine/inflector (2.0.4): Extracting archive
  - Installing doctrine/lexer (1.2.3): Extracting archive
  - Installing symfony/polyfill-ctype (v1.26.0): Extracting archive
  - Installing webmozart/assert (1.11.0): Extracting archive
  - Installing dragonmantank/cron-expression (v3.3.1): Extracting archive
  - Installing symfony/polyfill-php80 (v1.26.0): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.26.0): Extracting archive
  - Installing symfony/var-dumper (v5.4.11): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.26.0): Extracting archive
  - Installing symfony/polyfill-intl-grapheme (v1.26.0): Extracting archive
  - Installing symfony/string (v5.4.11): Extracting archive
  - Installing symfony/deprecation-contracts (v2.5.2): Extracting archive
  - Installing psr/container (1.1.2): Extracting archive
  - Installing symfony/service-contracts (v2.5.2): Extracting archive
  - Installing symfony/polyfill-php73 (v1.26.0): Extracting archive
  - Installing symfony/console (v5.4.11): Extracting archive
  - Installing psr/log (1.1.4): Extracting archive
  - Installing monolog/monolog (2.8.0): Extracting archive
  - Installing voku/portable-ascii (1.6.1): Extracting archive
  - Installing phpoption/phpoption (1.9.0): Extracting archive
  - Installing graham-campbell/result-type (v1.1.0): Extracting archive
  - Installing vlucas/phpdotenv (v5.4.1): Extracting archive
  - Installing symfony/css-selector (v5.4.11): Extracting archive
  - Installing tijsverkoyen/css-to-inline-styles (2.2.4): Extracting archive
  - Installing symfony/routing (v5.4.11): Extracting archive
  - Installing symfony/process (v5.4.11): Extracting archive
  - Installing symfony/polyfill-php72 (v1.26.0): Extracting archive
  - Installing symfony/polyfill-intl-idn (v1.26.0): Extracting archive
  - Installing symfony/mime (v5.4.11): Extracting archive
  - Installing symfony/http-foundation (v5.4.11): Extracting archive
  - Installing psr/event-dispatcher (1.0.0): Extracting archive
  - Installing symfony/event-dispatcher-contracts (v2.5.2): Extracting archive
  - Installing symfony/event-dispatcher (v5.4.9): Extracting archive
  - Installing symfony/error-handler (v5.4.11): Extracting archive
  - Installing symfony/http-kernel (v5.4.11): Extracting archive
  - Installing symfony/finder (v5.4.11): Extracting archive
  - Installing symfony/polyfill-iconv (v1.26.0): Extracting archive
  - Installing egulias/email-validator (2.1.25): Extracting archive
  - Installing swiftmailer/swiftmailer (v6.3.0): Extracting archive
  - Installing symfony/polyfill-php81 (v1.26.0): Extracting archive
  - Installing ramsey/collection (1.2.2): Extracting archive
  - Installing brick/math (0.9.3): Extracting archive
  - Installing ramsey/uuid (4.2.3): Extracting archive
  - Installing psr/simple-cache (1.0.1): Extracting archive
  - Installing opis/closure (3.6.3): Extracting archive
  - Installing symfony/translation-contracts (v2.5.2): Extracting archive
  - Installing symfony/translation (v5.4.11): Extracting archive
  - Installing nesbot/carbon (2.61.0): Extracting archive
  - Installing league/mime-type-detection (1.11.0): Extracting archive
  - Installing league/flysystem (1.1.9): Extracting archive
  - Installing nette/utils (v3.2.7): Extracting archive
  - Installing nette/schema (v1.2.2): Extracting archive
  - Installing dflydev/dot-access-data (v3.0.1): Extracting archive
  - Installing league/config (v1.1.1): Extracting archive
  - Installing league/commonmark (2.3.5): Extracting archive
  - Installing laravel/serializable-closure (v1.2.0): Extracting archive
  - Installing laravel/framework (v8.83.23): Extracting archive
  - Installing facade/ignition-contracts (1.0.2): Extracting archive
  - Installing facade/flare-client-php (1.10.0): Extracting archive
  - Installing facade/ignition (2.17.6): Extracting archive
  - Installing fakerphp/faker (v1.20.0): Extracting archive
  - Installing asm89/stack-cors (v2.1.1): Extracting archive
  - Installing fruitcake/laravel-cors (v2.2.0): Extracting archive
  - Installing psr/http-message (1.0.1): Extracting archive
  - Installing psr/http-client (1.0.1): Extracting archive
  - Installing ralouphie/getallheaders (3.0.3): Extracting archive
  - Installing psr/http-factory (1.0.1): Extracting archive
  - Installing guzzlehttp/psr7 (2.4.0): Extracting archive
  - Installing guzzlehttp/promises (1.5.1): Extracting archive
  - Installing guzzlehttp/guzzle (7.4.5): Extracting archive
  - Installing laravel/sail (v1.15.2): Extracting archive
  - Installing laravel/sanctum (v2.15.1): Extracting archive
  - Installing nikic/php-parser (v4.14.0): Extracting archive
  - Installing psy/psysh (v0.11.8): Extracting archive
  - Installing laravel/tinker (v2.7.2): Extracting archive
  - Installing hamcrest/hamcrest-php (v2.0.1): Extracting archive
  - Installing mockery/mockery (1.5.0): Extracting archive
  - Installing filp/whoops (2.14.5): Extracting archive
  - Installing nunomaduro/collision (v5.11.0): Extracting archive
  - Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
  - Installing phpdocumentor/type-resolver (1.6.1): Extracting archive
  - Installing phpdocumentor/reflection-docblock (5.3.0): Extracting archive
  - Installing sebastian/version (3.0.2): Extracting archive
  - Installing sebastian/type (3.0.0): Extracting archive
  - Installing sebastian/resource-operations (3.0.3): Extracting archive
  - Installing sebastian/recursion-context (4.0.4): Extracting archive
  - Installing sebastian/object-reflector (2.0.4): Extracting archive
  - Installing sebastian/object-enumerator (4.0.4): Extracting archive
  - Installing sebastian/global-state (5.0.5): Extracting archive
  - Installing sebastian/exporter (4.0.4): Extracting archive
  - Installing sebastian/environment (5.1.4): Extracting archive
  - Installing sebastian/diff (4.0.4): Extracting archive
  - Installing sebastian/comparator (4.0.6): Extracting archive
  - Installing sebastian/code-unit (1.0.8): Extracting archive
  - Installing sebastian/cli-parser (1.0.1): Extracting archive
  - Installing phpunit/php-timer (5.0.3): Extracting archive
  - Installing phpunit/php-text-template (2.0.4): Extracting archive
  - Installing phpunit/php-invoker (3.1.1): Extracting archive
  - Installing phpunit/php-file-iterator (3.0.6): Extracting archive
  - Installing theseer/tokenizer (1.2.1): Extracting archive
  - Installing sebastian/lines-of-code (1.0.3): Extracting archive
  - Installing sebastian/complexity (2.0.2): Extracting archive
  - Installing sebastian/code-unit-reverse-lookup (2.0.3): Extracting archive
  - Installing phpunit/php-code-coverage (9.2.15): Extracting archive
  - Installing doctrine/instantiator (1.4.1): Extracting archive
  - Installing phpspec/prophecy (v1.15.0): Extracting archive
  - Installing phar-io/version (3.2.1): Extracting archive
  - Installing phar-io/manifest (2.0.3): Extracting archive
  - Installing myclabs/deep-copy (1.11.0): Extracting archive
  - Installing phpunit/phpunit (9.5.21): Extracting archive
62 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: facade/ignition
Discovered Package: fruitcake/laravel-cors
Discovered Package: laravel/sail
Discovered Package: laravel/sanctum
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Package manifest generated successfully.
77 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan vendor:publish --tag=laravel-assets --ansi --force
No publishable resources for tag [laravel-assets].
Publishing complete.
> @php artisan key:generate --ansi
Application key set successfully.
www@work:/mnt/e/website/tgbot$ composer require danog/madelineproto
Using version 7.0.117.9998 for danog/madelineproto
./composer.json has been updated
Running composer update danog/madelineproto
Loading composer repositories with package information
Updating dependencies
Lock file operations: 2 installs, 0 updates, 0 removals
  - Locking danog/madelineproto (7.0.117.9998)
  - Locking phabel/phabel (1.0.55.74)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
  - Installing phabel/phabel (1.0.55.74): Extracting archive
phabel/phabel contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "phabel/phabel" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y
  - Installing danog/madelineproto (7.0.117.9998): Extracting archive
1 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating optimized autoload files
Warning: Ambiguous class resolution, "Symfony\Polyfill\Php80\Php80" was found 2x: in "/mnt/e/website/tgbot/vendor/symfony/polyfill-php80/Php80.php" and "/mnt/e/website/tgbot/vendor/phabel/phabel/vendor-bundle/symfony/polyfill-php80/Php80.php", the first will be used.
Warning: Ambiguous class resolution, "Symfony\Polyfill\Php80\PhpToken" was found 2x: in "/mnt/e/website/tgbot/vendor/symfony/polyfill-php80/PhpToken.php" and "/mnt/e/website/tgbot/vendor/phabel/phabel/vendor-bundle/symfony/polyfill-php80/PhpToken.php", the first will be used.
Warning: Ambiguous class resolution, "Symfony\Polyfill\Php73\Php73" was found 2x: in "/mnt/e/website/tgbot/vendor/symfony/polyfill-php73/Php73.php" and "/mnt/e/website/tgbot/vendor/phabel/phabel/vendor-bundle/symfony/polyfill-php73/Php73.php", the first will be used.
Warning: Ambiguous class resolution, "Symfony\Polyfill\Mbstring\Mbstring" was found 2x: in "/mnt/e/website/tgbot/vendor/symfony/polyfill-mbstring/Mbstring.php" and "/mnt/e/website/tgbot/vendor/phabel/phabel/vendor-bundle/symfony/polyfill-mbstring/Mbstring.php", the first will be used.
Warning: Ambiguous class resolution, "Symfony\Polyfill\Intl\Normalizer\Normalizer" was found 2x: in "/mnt/e/website/tgbot/vendor/symfony/polyfill-intl-normalizer/Normalizer.php" and "/mnt/e/website/tgbot/vendor/phabel/phabel/vendor-bundle/symfony/polyfill-intl-normalizer/Normalizer.php", the first will be used.
Warning: Ambiguous class resolution, "Symfony\Polyfill\Intl\Grapheme\Grapheme" was found 2x: in "/mnt/e/website/tgbot/vendor/symfony/polyfill-intl-grapheme/Grapheme.php" and "/mnt/e/website/tgbot/vendor/phabel/phabel/vendor-bundle/symfony/polyfill-intl-grapheme/Grapheme.php", the first will be used.
Warning: Ambiguous class resolution, "Symfony\Polyfill\Ctype\Ctype" was found 2x: in "/mnt/e/website/tgbot/vendor/symfony/polyfill-ctype/Ctype.php" and "/mnt/e/website/tgbot/vendor/phabel/phabel/vendor-bundle/symfony/polyfill-ctype/Ctype.php", the first will be used.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: facade/ignition
Discovered Package: fruitcake/laravel-cors
Discovered Package: laravel/sail
Discovered Package: laravel/sanctum
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Package manifest generated successfully.
79 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan vendor:publish --tag=laravel-assets --ansi --force
No publishable resources for tag [laravel-assets].
Publishing complete.
Loading additional dependencies...

Using version 7.0.117.9998 for danog/madelineproto
./composer.json has been updated
Running composer update danog/madelineproto
Loading composer repositories with package information
Updating dependencies
Lock file operations: 48 installs, 0 updates, 7 removals
  - Removing monolog/monolog (2.8.0)
  - Removing psr/http-factory (1.0.1)
  - Removing psr/http-message (1.0.1)
  - Removing psr/log (1.1.4)
  - Removing symfony/polyfill-mbstring (v1.26.0)
  - Removing symfony/polyfill-php80 (v1.26.0)
  - Removing webmozart/assert (1.11.0)
  - Locking phabel-transpiler74.amphp/amp (v2.6.2)
  - Locking phabel-transpiler74.amphp/byte-stream (v1.8.1)
  - Locking phabel-transpiler74.amphp/cache (v1.5.0)
  - Locking phabel-transpiler74.amphp/dns (v1.2.3)
  - Locking phabel-transpiler74.amphp/file (v2.0.3)
  - Locking phabel-transpiler74.amphp/hpack (v3.1.1)
  - Locking phabel-transpiler74.amphp/http (v1.6.3)
  - Locking phabel-transpiler74.amphp/http-client (v4.6.2)
  - Locking phabel-transpiler74.amphp/http-client-cookies (v1.2.0)
  - Locking phabel-transpiler74.amphp/log (v1.1.0)
  - Locking phabel-transpiler74.amphp/mysql (v2.1.2)
  - Locking phabel-transpiler74.amphp/parallel (v1.4.1)
  - Locking phabel-transpiler74.amphp/parser (v1.0.0)
  - Locking phabel-transpiler74.amphp/postgres (v1.4.3)
  - Locking phabel-transpiler74.amphp/process (v1.1.4)
  - Locking phabel-transpiler74.amphp/redis (v1.0.7)
  - Locking phabel-transpiler74.amphp/serialization (v1.0.0)
  - Locking phabel-transpiler74.amphp/socket (v1.2.0)
  - Locking phabel-transpiler74.amphp/sql (v1.0.1)
  - Locking phabel-transpiler74.amphp/sql-common (v1.1.3)
  - Locking phabel-transpiler74.amphp/sync (v1.4.2)
  - Locking phabel-transpiler74.amphp/websocket (v1.0.3)
  - Locking phabel-transpiler74.amphp/websocket-client (v1.0.1)
  - Locking phabel-transpiler74.amphp/windows-registry (v0.3.3)
  - Locking phabel-transpiler74.cash/lrucache (1.0.0)
  - Locking phabel-transpiler74.danog/dns-over-https (0.2.6)
  - Locking phabel-transpiler74.danog/ipc (0.1.15)
  - Locking phabel-transpiler74.danog/libdns-json (0.1.1)
  - Locking phabel-transpiler74.danog/loop (0.1.1)
  - Locking phabel-transpiler74.danog/magicalserializer (1.0)
  - Locking phabel-transpiler74.danog/primemodule (1.0.10.9999)
  - Locking phabel-transpiler74.danog/tg-file-decoder (0.1.11)
  - Locking phabel-transpiler74.daverandom/libdns (v2.0.2)
  - Locking phabel-transpiler74.erusev/parsedown (1.7.4)
  - Locking phabel-transpiler74.kelunik/certificate (v1.1.2)
  - Locking phabel-transpiler74.league/uri (6.7.1)
  - Locking phabel-transpiler74.league/uri-interfaces (2.3.0)
  - Locking phabel-transpiler74.league/uri-parser (1.4.1)
  - Locking phabel-transpiler74.monolog/monolog (2.8.0)
  - Locking phabel-transpiler74.paragonie/constant_time_encoding (v2.6.3)
  - Locking phabel-transpiler74.paragonie/random_compat (v9.99.100)
  - Locking phabel-transpiler74.phpseclib/phpseclib (3.0.14)
  - Locking phabel-transpiler74.psr/http-factory (1.0.1)
  - Locking phabel-transpiler74.psr/http-message (1.0.1)
  - Locking phabel-transpiler74.psr/log (2.0.0)
  - Locking phabel-transpiler74.symfony/polyfill-mbstring (v1.26.0)
  - Locking phabel-transpiler74.symfony/polyfill-php80 (v1.26.0)
  - Locking phabel-transpiler74.webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 48 installs, 0 updates, 7 removals
PHP Fatal error:  Uncaught Error: Call to undefined method Symfony\Component\Console\Helper\Helper::length() in /mnt/e/website/tgbot/vendor/symfony/console/Helper/ProgressBar.php:520
Stack trace:
#0 /mnt/e/website/tgbot/vendor/symfony/console/Helper/ProgressBar.php(580): Symfony\Component\Console\Helper\ProgressBar::Symfony\Component\Console\Helper\{closure}()
#1 [internal function]: Symfony\Component\Console\Helper\ProgressBar->Symfony\Component\Console\Helper\{closure}()
#2 /mnt/e/website/tgbot/vendor/symfony/console/Helper/ProgressBar.php(593): preg_replace_callback()
#3 /mnt/e/website/tgbot/vendor/symfony/console/Helper/ProgressBar.php(416): Symfony\Component\Console\Helper\ProgressBar->buildLine()
#4 /mnt/e/website/tgbot/vendor/symfony/console/Helper/ProgressBar.php(325): Symfony\Component\Console\Helper\ProgressBar->display()
#5 phar:///usr/local/bin/composer/src/Composer/Util/Loop.php(89): Symfony\Component\Console\Helper\ProgressBar->start()
#6 phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php(49 in /mnt/e/website/tgbot/vendor/symfony/console/Helper/ProgressBar.php on line 520

Fatal error: Uncaught Error: Call to undefined method Symfony\Component\Console\Helper\Helper::length() in /mnt/e/website/tgbot/vendor/symfony/console/Helper/ProgressBar.php:520
Stack trace:
#0 /mnt/e/website/tgbot/vendor/symfony/console/Helper/ProgressBar.php(580): Symfony\Component\Console\Helper\ProgressBar::Symfony\Component\Console\Helper\{closure}()
#1 [internal function]: Symfony\Component\Console\Helper\ProgressBar->Symfony\Component\Console\Helper\{closure}()
#2 /mnt/e/website/tgbot/vendor/symfony/console/Helper/ProgressBar.php(593): preg_replace_callback()
#3 /mnt/e/website/tgbot/vendor/symfony/console/Helper/ProgressBar.php(416): Symfony\Component\Console\Helper\ProgressBar->buildLine()
#4 /mnt/e/website/tgbot/vendor/symfony/console/Helper/ProgressBar.php(325): Symfony\Component\Console\Helper\ProgressBar->display()
#5 phar:///usr/local/bin/composer/src/Composer/Util/Loop.php(89): Symfony\Component\Console\Helper\ProgressBar->start()
#6 phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php(49 in /mnt/e/website/tgbot/vendor/symfony/console/Helper/ProgressBar.php on line 520

www@work:/mnt/e/website/tgbot$ php -v
PHP 7.4.29 (cli) (built: Apr 21 2022 10:16:17) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.29, Copyright (c), by Zend Technologies

Then I looked at similar problems, and there seems to be no solution https://github.com/danog/MadelineProto/issues/1069 https://github.com/danog/MadelineProto/issues/1086

danog commented 2 years ago

Try installing the mbstring extension

danog commented 2 years ago

Closing for inactivity