Skip to content

minor: PHP8.2 - handle union and intersection types for DNF types#6804

Merged
kubawerlos merged 8 commits intoPHP-CS-Fixer:masterfrom
werlos:php82_dnf
Mar 11, 2023
Merged

minor: PHP8.2 - handle union and intersection types for DNF types#6804
kubawerlos merged 8 commits intoPHP-CS-Fixer:masterfrom
werlos:php82_dnf

Conversation

@kubawerlos
Copy link
Copy Markdown
Member

@coveralls
Copy link
Copy Markdown

coveralls commented Mar 2, 2023

Pull Request Test Coverage Report for Build 4376522851

  • 8 of 8 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.003%) to 92.903%

Totals Coverage Status
Change from base Build 4307743648: -0.003%
Covered Lines: 22711
Relevant Lines: 24446

💛 - Coveralls

Comment thread src/Tokenizer/AbstractTypeTransformer.php Outdated
Comment thread tests/Fixtures/Integration/misc/PHP8_2.test
Comment thread tests/Fixtures/Integration/misc/PHP8_2.test
@kubawerlos kubawerlos added the topic/PHP8.2 Related to features available in PHP 8.2+ label Mar 7, 2023
@kubawerlos kubawerlos changed the title minor: PHP8.2 - support DNF types minor: PHP8.2 - handle union and intersection types for DNF types Mar 7, 2023
Comment thread tests/Fixtures/Integration/misc/PHP8_2.test
Comment thread tests/Tokenizer/TokensAnalyzerTest.php
Comment thread tests/Tokenizer/Transformer/TypeIntersectionTransformerTest.php
Comment thread src/Tokenizer/AbstractTypeTransformer.php
@kubawerlos kubawerlos enabled auto-merge (squash) March 10, 2023 15:05
@kubawerlos kubawerlos added the RTM Ready To Merge label Mar 11, 2023
*/
abstract class AbstractTypeTransformer extends AbstractTransformer
{
private const TYPE_END_TOKENS = [')', [T_CALLABLE], [T_NS_SEPARATOR], [T_STRING], [CT::T_ARRAY_TYPEHINT]];
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.

I hope our tests are well enough to ensure we don't break anything accidentally with change in this file

@keradus
Copy link
Copy Markdown
Member

keradus commented Mar 11, 2023

thanks @kubawerlos !
also @SpacePossum for initial PR

@kubawerlos kubawerlos merged commit e561bd1 into PHP-CS-Fixer:master Mar 11, 2023
@kubawerlos kubawerlos deleted the php82_dnf branch March 11, 2023 23:50
@keradus keradus removed the RTM Ready To Merge label Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic/PHP8.2 Related to features available in PHP 8.2+

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants