aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/init_command.rs
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/command/init_command.rs
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/command/init_command.rs')
-rw-r--r--crates/shirabe/src/command/init_command.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/shirabe/src/command/init_command.rs b/crates/shirabe/src/command/init_command.rs
index 6923f768..99a7de00 100644
--- a/crates/shirabe/src/command/init_command.rs
+++ b/crates/shirabe/src/command/init_command.rs
@@ -923,7 +923,6 @@ impl BaseCommand for InitCommand {
}
impl InitCommand {
- /// @return array{name: string, email: string|null}
fn parse_author_string(
&self,
author: &str,
@@ -968,7 +967,6 @@ impl InitCommand {
.into())
}
- /// @return array<int, array{name: string, email?: string}>
pub(crate) fn format_authors(
&self,
author: &str,
@@ -1007,7 +1005,6 @@ impl InitCommand {
Some(implode("\\", &namespace))
}
- /// @return array<string, string>
pub(crate) fn get_git_config(&self) -> IndexMap<String, String> {
if self.git_config.borrow().is_some() {
return self.git_config.borrow().clone().unwrap_or_default();
@@ -1161,7 +1158,6 @@ impl InitCommand {
}
}
- /// @param array<string, string|array<string>> $options
fn has_dependencies(&self, options: &IndexMap<String, PhpMixed>) -> bool {
let requires = options.get("require").cloned().unwrap_or(PhpMixed::Null);
let requires_arr_empty = match &requires {