@@ -214,7 +214,7 @@ public function getGlobalErrors()
214214 * @param array $taintedValues An array of input values
215215 * @param array $taintedFiles An array of uploaded files (in the $_FILES or $_GET format)
216216 */
217- public function bind (array $ taintedValues = null , array $ taintedFiles = null )
217+ public function bind (? array $ taintedValues = null , ? array $ taintedFiles = null )
218218 {
219219 $ this ->taintedValues = $ taintedValues ;
220220 $ this ->taintedFiles = $ taintedFiles ;
@@ -254,7 +254,7 @@ public function bind(array $taintedValues = null, array $taintedFiles = null)
254254 /**
255255 * Bind embedded forms (recursivly).
256256 */
257- public function bindEmbeddedForms (array $ taintedValues = null , array $ taintedFiles = null )
257+ public function bindEmbeddedForms (? array $ taintedValues = null , ? array $ taintedFiles = null )
258258 {
259259 foreach ($ this ->embeddedForms as $ name => $ form ) {
260260 // remove CSRF token
@@ -519,7 +519,7 @@ public function mergeForm(sfForm $form)
519519 *
520520 * @param sfValidatorBase $validator A validator to be merged
521521 */
522- public function mergePreValidator (sfValidatorBase $ validator = null )
522+ public function mergePreValidator (? sfValidatorBase $ validator = null )
523523 {
524524 if (null === $ validator ) {
525525 return ;
@@ -540,7 +540,7 @@ public function mergePreValidator(sfValidatorBase $validator = null)
540540 *
541541 * @param sfValidatorBase $validator A validator to be merged
542542 */
543- public function mergePostValidator (sfValidatorBase $ validator = null )
543+ public function mergePostValidator (? sfValidatorBase $ validator = null )
544544 {
545545 if (null === $ validator ) {
546546 return ;
0 commit comments