@@ -65,8 +65,8 @@ public function renderStimulusController(
6565 */
6666 public function renderStimulusAction (
6767 $ controllerName ,
68- string $ actionName = null ,
69- string $ eventName = null ,
68+ ? string $ actionName = null ,
69+ ? string $ eventName = null ,
7070 array $ parameters = []
7171 ): StimulusActionsDto {
7272 $ dto = new StimulusActionsDto ();
@@ -133,7 +133,7 @@ public function appendStimulusAction(
133133 StimulusActionsDto $ dto ,
134134 string $ controllerName ,
135135 string $ actionName ,
136- string $ eventName = null ,
136+ ? string $ eventName = null ,
137137 array $ parameters = []
138138 ): StimulusActionsDto {
139139 $ dto ->addAction ($ controllerName , $ actionName , $ eventName , $ parameters );
@@ -145,7 +145,7 @@ public function appendStimulusAction(
145145 * @param string|array $controllerName the Stimulus controller name
146146 * @param string|null $targetNames The space-separated list of target names if a string is passed to the 1st argument. Optional.
147147 */
148- public function renderStimulusTarget ($ controllerName , string $ targetNames = null ): StimulusTargetsDto
148+ public function renderStimulusTarget ($ controllerName , ? string $ targetNames = null ): StimulusTargetsDto
149149 {
150150 $ dto = new StimulusTargetsDto ();
151151 if (\is_array ($ controllerName )) {
@@ -183,7 +183,7 @@ public function renderStimulusTarget($controllerName, string $targetNames = null
183183 public function appendStimulusTarget (
184184 StimulusTargetsDto $ dto ,
185185 string $ controllerName ,
186- string $ targetNames = null
186+ ? string $ targetNames = null
187187 ): StimulusTargetsDto {
188188 $ dto ->addTarget ($ controllerName , $ targetNames );
189189
0 commit comments