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

Function php_version_conversion

src/formatting.rs:1016–1022  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1014
1015 #[test]
1016 fn php_version_conversion() {
1017 let v = crate::types::PhpVersion { major: 8, minor: 4 };
1018 let mago = to_mago_php_version(v);
1019 assert_eq!(mago.major(), 8);
1020 assert_eq!(mago.minor(), 4);
1021 assert_eq!(mago.patch(), 0);
1022 }
1023
1024 // ── sibling temp file ───────────────────────────────────────────
1025

Callers

nothing calls this directly

Calls 1

to_mago_php_versionFunction · 0.85

Tested by

no test coverage detected