mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-21 20:18:06 +02:00
refactor(dynamic): improve SSA receiver type validation, refactor framework binding logic, and expand test coverage
This commit is contained in:
parent
cc083eb38f
commit
f7310b20ba
9 changed files with 593 additions and 82 deletions
|
|
@ -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",
|
||||
],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue