phpstan-src icon indicating copy to clipboard operation
phpstan-src copied to clipboard

added filter_var() type inference

Open staabm opened this issue 3 years ago • 1 comments

based on FILTER_VALIDATE_* constants

inspired by https://github.com/php/php-src/issues/9311

staabm avatar Aug 12 '22 15:08 staabm

added handling for special cases I just realized by reading the comments from https://www.php.net/manual/de/filter.filters.validate.php

another interessting case is, that FILTER_VALIDATE_BOOL is not defined below php 8 https://3v4l.org/eT8oD

staabm avatar Aug 21 '22 08:08 staabm