refactor(dynamic): improve SSA receiver type validation, refactor framework binding logic, and expand test coverage

This commit is contained in:
elipeter 2026-05-24 13:36:03 -05:00
parent cc083eb38f
commit f7310b20ba
9 changed files with 593 additions and 82 deletions

View file

@ -43,8 +43,8 @@ pub fn source_imports_laravel(bytes: &[u8]) -> bool {
}
/// True when `bytes` carries any of the well-known Symfony import
/// stanzas (the `Symfony\…` namespace, the `#[Route]` attribute, the
/// `AbstractController` base class).
/// stanzas (the `Symfony\…` namespace, the routing attribute import,
/// or an explicit fixture marker).
pub fn source_imports_symfony(bytes: &[u8]) -> bool {
contains_any(
bytes,
@ -55,7 +55,6 @@ pub fn source_imports_symfony(bytes: &[u8]) -> bool {
b"use Symfony\\",
b"Symfony\\Component\\Routing\\Annotation\\Route",
b"Symfony\\Component\\Routing\\Attribute\\Route",
b"AbstractController",
b"// nyx-shape: symfony",
],
)