From ccc62145d5ca22d22ff01bf387d6fd3d27ab87b5 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 17 May 2026 01:31:45 +0900 Subject: feat(port): port Intervals.php Add Clone derives to Constraint, Interval, and DevConstraintSet (needed for IntervalCollection). Add preg_match/preg_replace/preg_split stubs to shirabe-php-shim. Co-Authored-By: Claude Sonnet 4.6 --- crates/shirabe-semver/src/constraint/constraint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/shirabe-semver/src/constraint/constraint.rs') diff --git a/crates/shirabe-semver/src/constraint/constraint.rs b/crates/shirabe-semver/src/constraint/constraint.rs index 68adba9..e35b3e4 100644 --- a/crates/shirabe-semver/src/constraint/constraint.rs +++ b/crates/shirabe-semver/src/constraint/constraint.rs @@ -8,7 +8,7 @@ use shirabe_php_shim as php; use crate::constraint::bound::Bound; use crate::constraint::constraint_interface::ConstraintInterface; -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Constraint { pub(crate) operator: i64, pub(crate) version: String, -- cgit v1.3.1