@@ -96,13 +96,15 @@ trait GeneratorTrait
9696 *
9797 * @internal
9898 *
99- * @var array
99+ * @var array<int|string, string|null>
100100 */
101101 private $ params = [];
102102
103103 /**
104104 * Execute the command.
105105 *
106+ * @param array<int|string, string|null> $params
107+ *
106108 * @deprecated use generateClass() instead
107109 */
108110 protected function execute (array $ params ): void
@@ -112,6 +114,8 @@ protected function execute(array $params): void
112114
113115 /**
114116 * Generates a class file from an existing template.
117+ *
118+ * @param array<int|string, string|null> $params
115119 */
116120 protected function generateClass (array $ params ): void
117121 {
@@ -134,7 +138,8 @@ protected function generateClass(array $params): void
134138 /**
135139 * Generate a view file from an existing template.
136140 *
137- * @param string $view namespaced view name that is generated
141+ * @param string $view namespaced view name that is generated
142+ * @param array<int|string, string|null> $params
138143 */
139144 protected function generateView (string $ view , array $ params ): void
140145 {
@@ -331,6 +336,8 @@ private function normalizeInputClassName(): string
331336 /**
332337 * Gets the generator view as defined in the `Config\Generators::$views`,
333338 * with fallback to `$template` when the defined view does not exist.
339+ *
340+ * @param array<string, mixed> $data
334341 */
335342 protected function renderTemplate (array $ data = []): string
336343 {
@@ -352,7 +359,10 @@ protected function renderTemplate(array $data = []): string
352359 /**
353360 * Performs pseudo-variables contained within view file.
354361 *
355- * @param string $class namespaced classname or namespaced view.
362+ * @param string $class namespaced classname or namespaced view.
363+ * @param list<string> $search
364+ * @param list<string> $replace
365+ * @param array<string, bool|string|null> $data
356366 *
357367 * @return string generated file content
358368 */
0 commit comments