lexik / LexikTranslationBundle

This Symfony bundle allow to import translation files content into the database and provide a GUI to edit translations.
MIT License
426 stars 262 forks source link

Fix issue with Query::getMaxResults() return type #401

Closed kbosilkov closed 3 years ago

kbosilkov commented 3 years ago

Return value of Doctrine\ORM\Query::getMaxResults() must be of the type int or null, string returned

jmeyo commented 3 years ago

Having this problem too, is it possible to get the latest commit from branch 4.4 ? Or de you need to tag a release ?

Composer ask me to upgrade symfony (4.4.32 to ~5.2) as soon as I use the branch alias, not entirely sure I understood the composer branch machanism

Tried some branch tags without success.

developer@ulrike_dev:/app$ composer update
Loading composer repositories with package information
Restricting packages listed in "symfony/symfony" to "4.4.*"
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires lexik/translation-bundle 4.4-dev, found lexik/translation-bundle[dev-fix_empty_file_profiler, dev-jqgrid_ui, dev-master, dev-symfony2.0, dev-profiler_file, v1.1.1, ..., 1.4.x-dev (alias of dev-jqgrid_ui), v2.0.0, ..., v2.1.5, v3.0.0, v3.1.0, v3.1.1, 3.4.x-dev, v4.0.0, ..., 4.x-dev (alias of dev-master), v5.0.0, ..., v5.2.0] but it does not match the constraint.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
developer@ulrike_dev:/app$ composer update
Loading composer repositories with package information
Restricting packages listed in "symfony/symfony" to "4.4.*"
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - lexik/translation-bundle dev-master requires symfony/framework-bundle ~5.2 -> found symfony/framework-bundle[v5.2.0, ..., v5.3.8] but it conflicts with your root composer.json require (^4.4).
    - lexik/translation-bundle 4.x-dev is an alias of lexik/translation-bundle dev-master and thus requires it to be installed too.
    - Root composer.json requires lexik/translation-bundle 4.x.x-dev -> satisfiable by lexik/translation-bundle[4.x-dev (alias of dev-master)].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
developer@ulrike_dev:/app$ composer update
Loading composer repositories with package information
Restricting packages listed in "symfony/symfony" to "4.4.*"
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires lexik/translation-bundle dev-4.4, found lexik/translation-bundle[dev-fix_empty_file_profiler, dev-jqgrid_ui, dev-master, dev-symfony2.0, dev-profiler_file, v1.1.1, ..., 1.4.x-dev (alias of dev-jqgrid_ui), v2.0.0, ..., v2.1.5, v3.0.0, v3.1.0, v3.1.1, 3.4.x-dev, v4.0.0, ..., 4.x-dev (alias of dev-master), v5.0.0, ..., v5.2.0] but it does not match the constraint.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
developer@ulrike_dev:/app$ composer update
Loading composer repositories with package information
Restricting packages listed in "symfony/symfony" to "4.4.*"
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires lexik/translation-bundle v4.4-dev, found lexik/translation-bundle[dev-fix_empty_file_profiler, dev-jqgrid_ui, dev-master, dev-symfony2.0, dev-profiler_file, v1.1.1, ..., 1.4.x-dev (alias of dev-jqgrid_ui), v2.0.0, ..., v2.1.5, v3.0.0, v3.1.0, v3.1.1, 3.4.x-dev, v4.0.0, ..., 4.x-dev (alias of dev-master), v5.0.0, ..., v5.2.0] but it does not match the constraint.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
jmeyo commented 3 years ago

Ok, somehow understood the branching strategy for composer

need to ask for this version in composer.json

    "require": {
        [...]
        "lexik/translation-bundle": "v4.4.x-dev",