Updated the project's zend-filter to 2.9.1, but can not find ToFloat filter, why?

zend-filter

#1

Hello Kindly!

I used composer update zendframework/zend-filter command to update my local zend-filter component, and it is successfully updated to 2.9.1, according to the document https://docs.zendframework.com/zend-filter/standard-filters/#tofloat, it already has this filter since 2.9.0, however I can not find the ToFloat.php file in vendor/zendframework/zend-filter/src.

Even if I run the composer update command to update all the libs, still ToFloat not work. I guess there is something wrong with the document, maybe ToFloat filter is in the todo list.

Any one can confirm this?


#2

Nothing wrong: https://github.com/zendframework/zend-filter/blob/master/src/ToFloat.php

Please check your file system outside of your IDE. Maybe the cache of your IDE is invalid.


#3

You are looking for https://github.com/zendframework/zend-filter/blob/135670d33804113070c4f243e961250b248e9e04/src/ToFloat.php

It’s also in the release: https://github.com/zendframework/zend-filter/blob/release-2.9.1/src/ToFloat.php


#4

@ocramius @froschdesign

Thank you! You are right! I checked the vendor folder after run the composer update commmand, the ToFloat.php is there. It it is the problem of my svn software, it sheild some file when transform the different files for some unknown reason.