Skip to content

Fix rules serialization#344

Merged
arogachev merged 9 commits into
masterfrom
fix-serialization
Oct 20, 2022
Merged

Fix rules serialization#344
arogachev merged 9 commits into
masterfrom
fix-serialization

Conversation

@xepozz

@xepozz xepozz commented Oct 16, 2022

Copy link
Copy Markdown
Member
Q A
Is bugfix? ✔️
New feature?
Breaks BC?

@xepozz xepozz added the status:code review The pull request needs review. label Oct 16, 2022
@xepozz xepozz requested a review from a team October 16, 2022 21:33
@codecov

codecov Bot commented Oct 16, 2022

Copy link
Copy Markdown

Codecov Report

Base: 95.72% // Head: 95.81% // Increases project coverage by +0.08% 🎉

Coverage data is based on head (51cf64b) compared to base (9fd61f1).
Patch coverage: 90.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #344      +/-   ##
============================================
+ Coverage     95.72%   95.81%   +0.08%     
- Complexity      600      601       +1     
============================================
  Files            73       73              
  Lines          1428     1434       +6     
============================================
+ Hits           1367     1374       +7     
+ Misses           61       60       -1     
Impacted Files Coverage Δ
src/Rule/Callback.php 77.77% <87.50%> (+0.50%) ⬆️
src/RulesDumper.php 92.85% <100.00%> (+15.93%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment thread src/RulesDumper.php Outdated
@arogachev

Copy link
Copy Markdown
Contributor

Could you also add a test?

@arogachev arogachev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@vjik vjik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Need tests

@samdark samdark added the pr:request for unit tests Unit tests are needed. label Oct 17, 2022
@xepozz xepozz requested a review from a team October 19, 2022 22:20
xepozz and others added 3 commits October 20, 2022 12:46
* Add ability to run non-static closures

* Apply fixes from StyleCI

* Fix tests

* Apply fixes from StyleCI

* Improve method check

* Apply fixes from StyleCI

* Check property before the use

* Collapse test

* Apply fixes from StyleCI

* Add test for static method

* Apply CR suggestions

* Update tests/Rule/CallbackTest.php

* Apply fixes from StyleCI

Co-authored-by: StyleCI Bot <[email protected]>
Co-authored-by: Alexey Rogachev <[email protected]>
@arogachev arogachev added type:enhancement Enhancement type:bug Bug and removed pr:request for unit tests Unit tests are needed. type:enhancement Enhancement type:bug Bug labels Oct 20, 2022
@arogachev arogachev merged commit ef7e3db into master Oct 20, 2022
@arogachev arogachev deleted the fix-serialization branch October 20, 2022 07:41
@vjik vjik restored the fix-serialization branch October 20, 2022 13:53
@vjik vjik deleted the fix-serialization branch October 20, 2022 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:code review The pull request needs review. type:enhancement Enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants