Skip to content

issues Search Results · repo:inhere/php-validate language:PHP

Filter by

43 results
 (86 ms)

43 results

ininhere/php-validate (press backspace or delete to remove)

现在有个场景,在参数约定remark字段为字符串,但自动化测试时remark给到了null,并没有触发string的校验,哪怕新写一个customStringValidator也不会触发: image image 这是service层参数打印: image 参数校验是放controller上,说明入参字段为null时,并不会触发验证器 注:验证器继承的是:Inhere\Validate\FieldValidation ...
question
  • Mr-GD
  • 1
  • Opened 
    on Oct 30, 2023
  • #63

代码: $post = array( prop = [ money = 22.4 , ], ); $rules = array( [ prop.money , float , min = .1, filter = float , msg = 属性金额不能小于0.1元。 ], ); $v = \Inhere\Validate\Validation::make( ...
  • juvenrui
  • Opened 
    on Jun 15, 2023
  • #62

有解决办法吗,或者是我哪里使用错误了
question
  • Mr-GD
  • 8
  • Opened 
    on May 24, 2023
  • #61

image 当然,仅限个人看法
question
  • Mr-GD
  • 1
  • Opened 
    on May 22, 2023
  • #60

question
  • kukudeliu
  • 1
  • Opened 
    on Jan 4, 2023
  • #58

类似这样的设计, $rules = [ rule0 = [ field0 , validator ], rule1 = [ field1 , validator ], rule2 = [ field2 , validator ] ] $scenes = [ scene0 = [ rule0 , rule3 ], scene1 = [ rule1 , rule3 ...
  • Packmini
  • Opened 
    on Aug 19, 2022
  • #57

这不知道是不是bug? 改用translates做了解决。 $v = \Inhere\Validate\Validation::make(data: [ title = , name = , ], rules: array( [ title,name , required , msg = [ tagId = 标题不能为空。 ...
help wanted
  • juvenrui
  • Opened 
    on Jul 18, 2022
  • #55

$v = \Inhere\Validate\Validation::check([ title = loggerSaveTime , age = 2, ], [ [ title , min , 30, msg = 标题字数无效! ], [ age , int , min = 4, max = 16, msg = {attr} error! ], ]); if ($v- isFail()) { var_dump($v- ...
question
  • juvenrui
  • 3
  • Opened 
    on Jul 17, 2022
  • #54

  • tangzhangming
  • 1
  • Opened 
    on Mar 3, 2022
  • #53

一般env这个函数都是框架会自己写一个的, composer自动加载有时候会把这个env先加载导致env函数优先使用toolkit/stdlib中的,太坑了。。。
help wanted
  • cpj555
  • 2
  • Opened 
    on Dec 2, 2021
  • #52
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub