diff options
Diffstat (limited to 'crates/shirabe-class-map-generator/src/class_map_generator.rs')
| -rw-r--r-- | crates/shirabe-class-map-generator/src/class_map_generator.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/crates/shirabe-class-map-generator/src/class_map_generator.rs b/crates/shirabe-class-map-generator/src/class_map_generator.rs index 57a21508..9fa37246 100644 --- a/crates/shirabe-class-map-generator/src/class_map_generator.rs +++ b/crates/shirabe-class-map-generator/src/class_map_generator.rs @@ -73,14 +73,7 @@ impl ClassMapGenerator { namespace: Option<String>, excluded_dirs: Vec<String>, ) -> anyhow::Result<()> { - if !in_array_strict( - autoload_type.to_string(), - &[ - PhpMixed::String("psr-0".to_string()), - PhpMixed::String("psr-4".to_string()), - PhpMixed::String("classmap".to_string()), - ], - ) { + if !matches!(autoload_type, "psr-0" | "psr-4" | "classmap") { return Err(anyhow::anyhow!(InvalidArgumentException { message: "$autoloadType must be one of: \"psr-0\", \"psr-4\" or \"classmap\"" .to_string(), |
