Skip to content

Problem with composer installing symfony/polyfill #19

@M1ke

Description

@M1ke

For projects which already use a library dependent on some component of the symfony/polyfill library the composer require process for this library will likely fail, e.g.

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

  Problem 1
    - don't install symfony/polyfill v1.7.0|remove symfony/polyfill-php56 v1.4.0
    - don't install symfony/polyfill-php56 v1.4.0|don't install symfony/polyfill v1.7.0
    - don't install symfony/polyfill v1.7.0|don't install symfony/polyfill-php56 v1.4.0
    - datadog/dd-trace 0.1.0 requires symfony/polyfill ~1.7.0 -> satisfiable by symfony/polyfill[v1.7.0].
    - Installation request for datadog/dd-trace ^0.1.0 -> satisfiable by datadog/dd-trace[0.1.0].
    - Installation request for symfony/polyfill-php56 (locked at v1.4.0) -> satisfiable by symfony/polyfill-php56[v1.4.0].

This is likely why the symfony/polyfill project recommend:

It is strongly recommended to upgrade your PHP version and/or install the missing extensions whenever possible. This polyfill should be used only when there is no better choice or when portability is a requirement.

I've installed the library on a system with PHP 7.0.30 and the tests pass fine. So I think it's only a few specific polyfills that might be required and it would be worth listing them.

I can submit a PR to remove the polyfill library but obviously my case isn't the only one. Is there a list of extensions required that we can polyfill specifically for?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions