Skip to content

Conversation

@moufmouf
Copy link
Member

@moufmouf moufmouf commented Dec 2, 2020

This PR adds support for PHP 8 attributes in addition to Doctrine annotations.

The PHP class for the Doctrine Annotation and the PHP Attribute is the same.

For attributes related to parameters, they have been migrated to parameter attributes (rather than method annotations with a "for" keyword).

Caveat: could not migrate annotations in annotations (cause this is not possible with attributes)

@codecov-io
Copy link

codecov-io commented Dec 3, 2020

Codecov Report

Merging #313 (b656fd3) into master (06dc826) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #313      +/-   ##
============================================
+ Coverage     99.39%   99.42%   +0.02%     
- Complexity     1533     1582      +49     
============================================
  Files           137      137              
  Lines          3496     3630     +134     
============================================
+ Hits           3475     3609     +134     
  Misses           21       21              
Impacted Files Coverage Δ Complexity Δ
src/AggregateControllerQueryProvider.php 100.00% <ø> (ø) 8.00 <0.00> (ø)
.../Annotations/Exceptions/ClassNotFoundException.php 100.00% <ø> (ø) 3.00 <0.00> (ø)
...notations/Exceptions/InvalidParameterException.php 100.00% <ø> (ø) 2.00 <0.00> (ø)
src/Containers/BasicAutoWiringContainer.php 95.65% <ø> (ø) 13.00 <0.00> (ø)
src/Exceptions/GraphQLAggregateException.php 100.00% <ø> (ø) 9.00 <0.00> (ø)
src/Exceptions/WebonyxErrorHandler.php 100.00% <ø> (ø) 7.00 <0.00> (ø)
src/FieldNotFoundException.php 100.00% <ø> (ø) 2.00 <0.00> (ø)
src/FieldsBuilder.php 99.56% <ø> (+<0.01%) 70.00 <0.00> (ø)
src/GlobControllerQueryProvider.php 100.00% <ø> (ø) 20.00 <0.00> (ø)
src/Http/HttpCodeDecider.php 100.00% <ø> (ø) 10.00 <0.00> (ø)
... and 102 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 06dc826...b656fd3. Read the comment docs.

@moufmouf moufmouf mentioned this pull request Dec 3, 2020
@moufmouf moufmouf merged commit e613729 into thecodingmachine:master Dec 3, 2020
@moufmouf moufmouf deleted the attributes branch December 3, 2020 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants