Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Symfony 7 support #55

Merged
merged 1 commit into from
Dec 4, 2023
Merged

Add Symfony 7 support #55

merged 1 commit into from
Dec 4, 2023

Conversation

BoShurik
Copy link
Owner

@BoShurik BoShurik commented Dec 4, 2023

No description provided.

@BoShurik BoShurik merged commit 4680c76 into master Dec 4, 2023
20 checks passed
@enerjiser2014
Copy link

$ composer require boshurik/telegram-bot-bundle
./composer.json has been updated
Running composer update boshurik/telegram-bot-bundle
Loading composer repositories with package information
Updating dependencies
Lock file operations: 2 installs, 0 updates, 0 removals

  • Locking boshurik/telegram-bot-bundle (2.1.0)
  • Locking telegram-bot/api (v2.5.0)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 2 installs, 0 updates, 0 removals
  • Downloading telegram-bot/api (v2.5.0)
  • Downloading boshurik/telegram-bot-bundle (2.1.0)
  • Installing telegram-bot/api (v2.5.0): Extracting archive
  • Installing boshurik/telegram-bot-bundle (2.1.0): Extracting archive
    Generating autoload files
    30 packages you are using are looking for funding.
    Use the composer fund command to find out more!

Symfony operations: 1 recipe (e17f14e73e1b376f33f7472787043a3c)

  • Configuring boshurik/telegram-bot-bundle (>=2.1.0): From auto-generated recipe
    Executing script cache:clear [KO]
    [KO]
    Script cache:clear returned with error code 255
    !! Symfony\Component\ErrorHandler\Error\FatalError^ {#325
    !! #message: "Compile Error: Declaration of BoShurik\TelegramBotBundle\DependencyInjection\Configuration::getConfigTreeBuilder() must be compatible with Symfony\Component\Config\Definition\ConfigurationInterface::getConfigTreeBuilder(): Symfony\Component\Config\Definition\Builder\TreeBuilder"
    !! #code: 0
    !! #file: "C:\Users\jj\PhpstormProjects\bot\vendor\boshurik\telegram-bot-bundle\DependencyInjection\Configuration.php"
    !! #line: 23
    !! -error: array:4 [
    !! "type" => 64
    !! "message" => "Declaration of BoShurik\TelegramBotBundle\DependencyInjection\Configuration::getConfigTreeBuilder() must be compatible with Symfony\Component\Config\Definition\ConfigurationInterface::getConfigTreeBuilder(): Symfony\Component\Config\Definition\Builder\TreeBuilder"
    !! "file" => "C:\Users\jj\PhpstormProjects\bot\vendor\boshurik\telegram-bot-bundle\DependencyInjection\Configuration.php"
    !! "line" => 23
    !! ]
    !! }
    !! PHP Fatal error: Declaration of BoShurik\TelegramBotBundle\DependencyInjection\Configuration::getConfigTreeBuilder() must be compatible with Symfony\Component\Config\Definition\ConfigurationInterface::getConfigTreeBuilder(): Symfony\Component\Config\Definition\Builder\TreeBuilder in C:\Users\jj\PhpstormProjects\bot\vendor\boshurik\telegram-bot-bundle\DependencyInjection\Configuration.php on line 23
    !!
    Script @auto-scripts was called via post-update-cmd

@enerjiser2014
Copy link

symfony 7

@BoShurik
Copy link
Owner Author

BoShurik commented Dec 16, 2023

Thank you. I'll fix it ASAP

@BoShurik
Copy link
Owner Author

@enerjiser2014 version with symfony 7 support is not released yet, so composer installs version 2.1 with too wide "symfony/framework-bundle": ">=2.7" constraint. As a temporary solution you can use *@dev constraint for boshurik/telegram-bot-bundle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants