Skip to content

Unable to install DBAL on a fresh Laravel application due to type package #2905

Closed
@timacdonald

Description

@timacdonald

Hello,

Tim here from the Laravel core team 👋

I encountered an issue with the following code:

composer create-project laravel/laravel dbal-test
cd dbal-test
composer require doctrine/dbal

Carbon version: 2.72.1

PHP version: 8.2.11

I expected to get:

A successful installation of DBAL

But I actually get:

Your requirements could not be resolved to an installable set of packages.

We are currently trying to work out how to resolve this for our users. I've opened a PR on Laravel to conflict with the ^3.0 version of types package (laravel/framework#49438), however this causes existing application to no longer be able to update their version of the framework without running special composer commands.

Is there any way we can remove this package from the "require" and possibly add it to "suggest" or document that it should be installed if you are using Doctrine?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions