Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move types to code if possible #156

Merged
merged 16 commits into from
Apr 14, 2020
Merged

Move types to code if possible #156

merged 16 commits into from
Apr 14, 2020

Conversation

mvorisek
Copy link
Member

@mvorisek mvorisek commented Apr 11, 2020

And also fixes #154

Forcing :self return type instead of phpdoc @return $this is not desired as some IDEs the ignore the phpdoc and uses self instead of static type. This will change in PHP 8.0, which will support native return type of static.

@mvorisek mvorisek force-pushed the improve_code_types branch 3 times, most recently from f77bb5e to 61d48b8 Compare April 11, 2020 16:31
@codecov
Copy link

codecov bot commented Apr 11, 2020

Codecov Report

Merging #156 into develop will decrease coverage by 0.02%.
The diff coverage is 96.42%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop     #156      +/-   ##
=============================================
- Coverage      97.06%   97.03%   -0.03%     
+ Complexity       456      448       -8     
=============================================
  Files             24       24              
  Lines           1055     1045      -10     
=============================================
- Hits            1024     1014      -10     
  Misses            31       31              
Impacted Files Coverage Δ Complexity Δ
src/ExceptionRenderer/JSON.php 100.00% <ø> (ø) 22.00 <0.00> (ø)
src/QuickExceptionTrait.php 100.00% <ø> (ø) 1.00 <0.00> (ø)
src/StaticAddToTrait.php 75.00% <66.66%> (ø) 17.00 <7.00> (ø)
src/CollectionTrait.php 92.75% <75.00%> (ø) 26.00 <12.00> (ø)
src/ConfigTrait.php 100.00% <100.00%> (ø) 25.00 <19.00> (ø)
src/ContainerTrait.php 100.00% <100.00%> (ø) 34.00 <29.00> (ø)
src/DIContainerTrait.php 100.00% <100.00%> (ø) 9.00 <7.00> (-1.00)
src/DebugTrait.php 100.00% <100.00%> (ø) 27.00 <10.00> (ø)
src/DynamicMethodTrait.php 100.00% <100.00%> (ø) 27.00 <27.00> (-6.00)
src/Exception.php 100.00% <100.00%> (ø) 18.00 <5.00> (-1.00)
... and 9 more

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 03e85ba...12fe141. Read the comment docs.

@mvorisek mvorisek marked this pull request as ready for review April 11, 2020 16:40
@mvorisek mvorisek force-pushed the improve_code_types branch 12 times, most recently from 04211e4 to 0a83ce1 Compare April 11, 2020 18:18
@romaninsh
Copy link
Member

Some of the previous commits broke localisation exception tests. Could you see why is it failing?

@romaninsh romaninsh merged commit a250009 into develop Apr 14, 2020
@romaninsh romaninsh deleted the improve_code_types branch April 14, 2020 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants