zend-inputfilter icon indicating copy to clipboard operation
zend-inputfilter copied to clipboard

[bc\break] Remove deprecated and validators auto injections

Open Maks3w opened this issue 9 years ago • 6 comments

  • Remove AllowEmpty / ContinueIfEmpty deprecated on 2.4.8. Zend\Validator\NotEmpty should be added to the ValidatorChain when expected.
  • Remove UploadFile validator auto injection Zend\Validator\File\UploadFile should be added to the ValidatorChain when expected.

ToDo:

  • [x] review coverage drop when uncovered lines grow

Maks3w avatar Dec 16 '15 23:12 Maks3w

Code coverage drop its for a difference between phpunit code coverage versions.

Maks3w avatar Dec 18 '15 19:12 Maks3w

@Maks3w can you drop into the summary how users can emulate the behavior using validators? Most will likely see this issue, see that the functionality was removed, but not know how to accomplish the behavior on their own.

Which brings me to the next point: can you start a migration/changes document detailing the change in behavior, please?

weierophinney avatar Jan 04 '16 21:01 weierophinney

@Maks3w Are you still working on this?

DASPRiD avatar May 08 '16 20:05 DASPRiD

I'm not sure if continue with this or rewrite the component. There is not urgency for to merge this

Maks3w avatar May 08 '16 21:05 Maks3w

This repository has been closed and moved to laminas/laminas-inputfilter; a new issue has been opened at https://github.com/laminas/laminas-inputfilter/issues/7.

weierophinney avatar Dec 31 '19 21:12 weierophinney

This repository has been moved to laminas/laminas-inputfilter. If you feel that this patch is still relevant, please re-open against that repository, and reference this issue. To re-open, we suggest the following workflow:

  • Squash all commits in your branch (git rebase -i origin/{branch})
  • Make a note of all changed files (`git diff --name-only origin/{branch}...HEAD
  • Run the laminas/laminas-migration tool on the code.
  • Clone laminas/laminas-inputfilter to another directory.
  • Copy the files from the second bullet point to the clone of laminas/laminas-inputfilter.
  • In your clone of laminas/laminas-inputfilter, commit the files, push to your fork, and open the new PR. We will be providing tooling via laminas/laminas-migration soon to help automate the process.

weierophinney avatar Dec 31 '19 21:12 weierophinney