Skip to content

Commit

Permalink
Merge pull request #62 from akeneo/php-8
Browse files Browse the repository at this point in the history
Add PHP 8 support
  • Loading branch information
damien-carcel authored Jan 4, 2021
2 parents 630c8ab + 0474e4d commit 662d4b6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ php:
- '7.2'
- '7.3'
- '7.4'
- '8.0'

cache:
directories:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ you're good to go:

## Usage

To discover how to use this tool, please read the usage of the [detect command](doc/DETECT.md).
To discover how to use this tool, please read the usage of the [detect](doc/DETECT.md) and [list-unused-requirements](doc/LIST_UNUSED_REQUIREMENTS.md) commands.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
],
"require": {
"php": "^7.2",
"php": ">=7.2",
"friendsofphp/php-cs-fixer": "^2.1",
"symfony/event-dispatcher": "^4.4||^5.0",
"symfony/finder": "^4.4||^5.0",
Expand Down
3 changes: 2 additions & 1 deletion spec/NodeParser/PhpClass/ClassNameExtractorSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ interface FamilyInterface extends TranslatableInterface, ReferableInterface, Ver
$this->extract($tokens)->shouldReturn('FamilyInterface');
}

function it_throws_an_exception_when_class_name_cannot_be_extracted(Tokens $tokens)
function it_throws_an_exception_when_class_name_cannot_be_extracted()
{
$tokens = Tokens::fromCode('');
$this->shouldThrow('Akeneo\CouplingDetector\NodeParser\ExtractionException')->duringExtract($tokens);
}
}
3 changes: 2 additions & 1 deletion spec/NodeParser/PhpClass/NamespaceExtractorSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ interface FamilyInterface extends TranslatableInterface, ReferableInterface, Ver
$this->extract($tokens)->shouldReturn('Pim\Bundle\CatalogBundle\Model');
}

function it_throws_an_exception_when_class_name_cannot_be_extracted(Tokens $tokens)
function it_throws_an_exception_when_class_name_cannot_be_extracted()
{
$tokens = Tokens::fromCode('');
$this->shouldThrow('Akeneo\CouplingDetector\NodeParser\ExtractionException')->duringExtract($tokens);
}
}

0 comments on commit 662d4b6

Please sign in to comment.