phalcon / migrations

Generate or migrate database changes via migrations.
https://docs.phalcon.io/latest/en/db-migrations
BSD 3-Clause "New" or "Revised" License
27 stars 23 forks source link

addslashes only apply to string #95

Closed weirenxue closed 4 years ago

weirenxue commented 4 years ago

The function "addslashes" only works with strings. Determine the value type before use.

codecov[bot] commented 4 years ago

Codecov Report

Merging #95 into master will decrease coverage by 0.13%. The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master      #95      +/-   ##
============================================
- Coverage     53.11%   52.98%   -0.14%     
- Complexity      477      478       +1     
============================================
  Files            17       17              
  Lines          1267     1289      +22     
============================================
+ Hits            673      683      +10     
- Misses          594      606      +12     
weirenxue commented 4 years ago

Please also check failed tests and code validations.

I didn't notice. Now all pass.