mago-analyzer 1.26.0

A PHP static analyzer that can detect type errors in PHP code, and provide suggestions for fixing them.
Documentation
use std::rc::Rc;

use mago_atom::AtomMap;
use mago_codex::ttype::union::TUnion;

#[derive(Clone, Debug)]
pub struct CaseScope {
    pub break_vars: Option<AtomMap<Rc<TUnion>>>,
}

impl CaseScope {
    pub fn new() -> Self {
        Self { break_vars: None }
    }
}

impl Default for CaseScope {
    fn default() -> Self {
        Self::new()
    }
}