neat-php / object

Neat Object components
MIT License
4 stars 1 forks source link

Recognize 0000-00-00 as NULL instead of DateTime(Immutable) object #35

Closed annavanbiemen closed 3 years ago

annavanbiemen commented 4 years ago

Recognize DATE and DATETIME values containing only zeroes as NULL. Fixes #34

codecov[bot] commented 4 years ago

Codecov Report

Merging #35 into master will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##              master       #35   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity       336       342    +6     
===========================================
  Files             40        40           
  Lines            869       873    +4     
===========================================
+ Hits             869       873    +4     
Impacted Files Coverage Δ Complexity Δ
classes/Property/DateTime.php 100.00% <100.00%> (ø) 6.00 <4.00> (+3.00)
classes/Property/DateTimeImmutable.php 100.00% <100.00%> (ø) 6.00 <4.00> (+3.00)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ec85274...dff3622. Read the comment docs.