diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-20 08:33:49 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-20 08:33:57 +0900 |
| commit | f31b101ce1e921a026ba234b1f0a83b0392bc118 (patch) | |
| tree | b7ac2aa84d71ebd162cc21aeab0240e7e0544988 /crates/shirabe-external-packages/src/composer/semver | |
| parent | 5e31fa33c3b5cf726a57a063b8e7a070869250fe (diff) | |
| download | php-shirabe-f31b101ce1e921a026ba234b1f0a83b0392bc118.tar.gz php-shirabe-f31b101ce1e921a026ba234b1f0a83b0392bc118.tar.zst php-shirabe-f31b101ce1e921a026ba234b1f0a83b0392bc118.zip | |
fix(compile): fix all remaining compile errors
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-external-packages/src/composer/semver')
| -rw-r--r-- | crates/shirabe-external-packages/src/composer/semver/compiling_matcher.rs | 8 | ||||
| -rw-r--r-- | crates/shirabe-external-packages/src/composer/semver/intervals.rs | 13 |
2 files changed, 13 insertions, 8 deletions
diff --git a/crates/shirabe-external-packages/src/composer/semver/compiling_matcher.rs b/crates/shirabe-external-packages/src/composer/semver/compiling_matcher.rs index 5a8f09d..dc27a32 100644 --- a/crates/shirabe-external-packages/src/composer/semver/compiling_matcher.rs +++ b/crates/shirabe-external-packages/src/composer/semver/compiling_matcher.rs @@ -1,16 +1,18 @@ +use shirabe_semver::constraint::constraint_interface::ConstraintInterface; + #[derive(Debug)] pub struct CompilingMatcher; impl CompilingMatcher { - pub fn r#match(_constraint: &dyn std::any::Any, _package: &dyn std::any::Any) -> bool { + pub fn r#match(_constraint: &dyn ConstraintInterface, _package: &dyn std::any::Any) -> bool { todo!() } - pub fn matches(_constraint: &dyn std::any::Any, _operator: &str, _version: &str) -> bool { + pub fn matches(_constraint: &dyn ConstraintInterface, _operator: i64, _version: &str) -> bool { todo!() } - pub fn match_(_constraint: &dyn std::any::Any, _operator: &str, _version: &str) -> bool { + pub fn match_(_constraint: &dyn ConstraintInterface, _operator: i64, _version: &str) -> bool { todo!() } diff --git a/crates/shirabe-external-packages/src/composer/semver/intervals.rs b/crates/shirabe-external-packages/src/composer/semver/intervals.rs index d0a736c..04f7ee7 100644 --- a/crates/shirabe-external-packages/src/composer/semver/intervals.rs +++ b/crates/shirabe-external-packages/src/composer/semver/intervals.rs @@ -1,25 +1,28 @@ use shirabe_php_shim::PhpMixed; +use shirabe_semver::constraint::constraint_interface::ConstraintInterface; #[derive(Debug)] pub struct Intervals; impl Intervals { pub fn is_subset_of( - _constraint_a: &dyn std::any::Any, - _constraint_b: &dyn std::any::Any, + _constraint_a: &dyn ConstraintInterface, + _constraint_b: &dyn ConstraintInterface, ) -> anyhow::Result<bool> { todo!() } - pub fn compact_constraint(_constraint: &dyn std::any::Any) -> Box<dyn std::any::Any> { + pub fn compact_constraint( + _constraint: Box<dyn ConstraintInterface>, + ) -> Box<dyn ConstraintInterface> { todo!() } - pub fn compact(_constraint: &dyn std::any::Any) -> Box<dyn std::any::Any> { + pub fn compact(_constraint: &dyn ConstraintInterface) -> Box<dyn ConstraintInterface> { todo!() } - pub fn get(_constraint: &dyn std::any::Any) -> anyhow::Result<PhpMixed> { + pub fn get(_constraint: &dyn ConstraintInterface) -> anyhow::Result<PhpMixed> { todo!() } |
