Skip to content

Adding nullable parameter to the updatedAt behavior#23

Merged
roxblnfk merged 2 commits intocycle:1.xfrom
msmakouz:feature/fill-updated-at
Jan 20, 2022
Merged

Adding nullable parameter to the updatedAt behavior#23
roxblnfk merged 2 commits intocycle:1.xfrom
msmakouz:feature/fill-updated-at

Conversation

@msmakouz
Copy link
Member

No description provided.

@msmakouz msmakouz added this to the 1.1.x milestone Jan 17, 2022
@msmakouz msmakouz requested a review from roxblnfk January 17, 2022 16:09
@msmakouz msmakouz added the type:enhancement Enhancement. label Jan 17, 2022
@msmakouz msmakouz linked an issue Jan 17, 2022 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Jan 17, 2022

Codecov Report

Merging #23 (ac35010) into 1.x (a8f0f92) will increase coverage by 0.15%.
The diff coverage is 100.00%.

❗ Current head ac35010 differs from pull request most recent head 7ebd4bf. Consider uploading reports for the commit 7ebd4bf to get more accurate results
Impacted file tree graph

@@             Coverage Diff              @@
##                1.x      #23      +/-   ##
============================================
+ Coverage     84.53%   84.69%   +0.15%     
- Complexity      145      148       +3     
============================================
  Files            20       20              
  Lines           388      392       +4     
============================================
+ Hits            328      332       +4     
  Misses           60       60              
Impacted Files Coverage Δ
src/Listener/UpdatedAt.php 100.00% <100.00%> (ø)
src/UpdatedAt.php 100.00% <100.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 a8f0f92...7ebd4bf. Read the comment docs.

@msmakouz msmakouz added type:feature New feature. and removed type:enhancement Enhancement. labels Jan 17, 2022
public function __construct(
private string $field = 'updatedAt'
private string $field = 'updatedAt',
private bool $nullable = false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false looks like behavior changing

@roxblnfk roxblnfk merged commit 1951a23 into cycle:1.x Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UpdatedAt field should be not null

2 participants