@@ -147,7 +147,7 @@ private function process(Action $action, EnvironmentInterface $environment)
147147 * Handle invalid property value bag.
148148 *
149149 * @param PropertyValueBagInterface|null $propertyValueBag The property value bag.
150- * @param ModelInterface|null $model The model.
150+ * @param ModelInterface|null $model The model.
151151 * @param EnvironmentInterface $environment The environment.
152152 *
153153 * @return void
@@ -157,9 +157,9 @@ private function process(Action $action, EnvironmentInterface $environment)
157157 * @SuppressWarnings(PHPMD.LongVariable)
158158 */
159159 protected function handleInvalidPropertyValueBag (
160- PropertyValueBagInterface $ propertyValueBag = null ,
161- ModelInterface $ model = null ,
162- EnvironmentInterface $ environment
160+ ? PropertyValueBagInterface $ propertyValueBag = null ,
161+ ? ModelInterface $ model = null ,
162+ EnvironmentInterface $ environment
163163 ) {
164164 // @codingStandardsIgnoreStart
165165 @\trigger_error ('This function where remove in 3.0. ' . __CLASS__ . ':: ' . __FUNCTION__ , E_USER_DEPRECATED );
@@ -210,16 +210,16 @@ protected function handleInvalidPropertyValueBag(
210210 *
211211 * @param Action $action The action.
212212 * @param \ArrayObject $renderInformation The render information.
213- * @param PropertyValueBagInterface $propertyValues The property values.
213+ * @param PropertyValueBagInterface|null $propertyValues The property values.
214214 * @param EnvironmentInterface $environment The environment.
215215 *
216216 * @return void
217217 */
218218 private function handleOverrideCollection (
219- Action $ action ,
220- \ArrayObject $ renderInformation ,
221- PropertyValueBagInterface $ propertyValues = null ,
222- EnvironmentInterface $ environment
219+ Action $ action ,
220+ \ArrayObject $ renderInformation ,
221+ ? PropertyValueBagInterface $ propertyValues = null ,
222+ EnvironmentInterface $ environment
223223 ) {
224224 if (!$ propertyValues ) {
225225 return ;
0 commit comments