MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / to_mago_php_version

Function to_mago_php_version

src/formatting.rs:231–233  ·  view source on GitHub ↗

Convert a project [`PhpVersion`](crate::types::PhpVersion) into the mago-formatter's [`PHPVersion`](mago_php_version::PHPVersion).

(v: crate::types::PhpVersion)

Source from the content-addressed store, hash-verified

229/// Convert a project [`PhpVersion`](crate::types::PhpVersion) into the
230/// mago-formatter's [`PHPVersion`](mago_php_version::PHPVersion).
231fn to_mago_php_version(v: crate::types::PhpVersion) -> mago_php_version::PHPVersion {
232 mago_php_version::PHPVersion::new(v.major as u32, v.minor as u32, 0)
233}
234
235// ── External tool pipeline ──────────────────────────────────────────
236

Callers 2

execute_strategyFunction · 0.85
php_version_conversionFunction · 0.85

Calls

no outgoing calls

Tested by 1

php_version_conversionFunction · 0.68