mago-analyzer 1.47.2

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_codex::ttype::union::TUnion;
use mago_word::WordMap;

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

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

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