Skip to content
This repository was archived by the owner on May 2, 2023. It is now read-only.

Tilde version range #54

@konradmichalik

Description

@konradmichalik

I got some problems with version comparisons.

$range = new expression('~4.1');
$range->satisfiedBy(new version('4.9.6')); //false -> should be true

The tilde operator should work like the following example from composer: ~1.2 is equivalent to >=1.2 <2.0.0. It's like you documented in your Readme, but it's actually not working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions