aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/autoload
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-06 04:22:46 +0900
committernsfisis <nsfisis@gmail.com>2026-08-06 04:23:22 +0900
commit3d4a0cadc950d4440251efa11b55b0bfb0afdef7 (patch)
treecf1cd680867b9aa633eafe6332b881711b738823 /crates/shirabe/src/autoload
parentce6192f1cfaac63457b173f573ada661a4665bfb (diff)
downloadphp-shirabe-3d4a0cadc950d4440251efa11b55b0bfb0afdef7.tar.gz
php-shirabe-3d4a0cadc950d4440251efa11b55b0bfb0afdef7.tar.zst
php-shirabe-3d4a0cadc950d4440251efa11b55b0bfb0afdef7.zip
chore: drop @param/@return tags that only restate Rust types
The ported docblocks copied @param and @return straight from the PHP source. When such a tag carries nothing but a type and an argument name, the Rust signature already states it, so the line is noise. Tags whose text adds prose beyond the type are kept. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/autoload')
-rw-r--r--crates/shirabe/src/autoload/class_loader.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/crates/shirabe/src/autoload/class_loader.rs b/crates/shirabe/src/autoload/class_loader.rs
index 3bcc6f81..89758269 100644
--- a/crates/shirabe/src/autoload/class_loader.rs
+++ b/crates/shirabe/src/autoload/class_loader.rs
@@ -56,7 +56,6 @@ pub struct ClassLoader {
}
impl ClassLoader {
- /// @param string|null $vendorDir
pub fn new(vendor_dir: Option<String>) -> Self {
let this = Self {
vendor_dir,
@@ -75,7 +74,6 @@ impl ClassLoader {
this
}
- /// @return array<string, list<string>>
pub fn get_prefixes(&self) -> IndexMap<String, Vec<String>> {
if !self.prefixes_psr0.is_empty() {
// PHP: call_user_func_array('array_merge', array_values($this->prefixesPsr0))
@@ -94,17 +92,14 @@ impl ClassLoader {
IndexMap::new()
}
- /// @return array<string, list<string>>
pub fn get_prefixes_psr4(&self) -> &IndexMap<String, Vec<String>> {
&self.prefix_dirs_psr4
}
- /// @return list<string>
pub fn get_fallback_dirs(&self) -> &Vec<String> {
&self.fallback_dirs_psr0
}
- /// @return list<string>
pub fn get_fallback_dirs_psr4(&self) -> &Vec<String> {
&self.fallback_dirs_psr4
}
@@ -369,13 +364,10 @@ impl ClassLoader {
}
/// Returns the currently registered loaders keyed by their corresponding vendor directories.
- ///
- /// @return array<string, self>
pub fn get_registered_loaders() -> IndexMap<String, ClassLoader> {
REGISTERED_LOADERS.lock().unwrap().clone()
}
- /// @return string|false
fn find_file_with_extension(&self, class: &str, ext: &str) -> Option<String> {
// PSR-4 lookup
let logical_path_psr4 = format!("{}{}", strtr(class, "\\", DIRECTORY_SEPARATOR), ext);