Skip to content

Commit

Permalink
Merge pull request #73 from svandervlugt/symf
Browse files Browse the repository at this point in the history
Allow symfony 6 and 7
  • Loading branch information
svandervlugt authored Apr 30, 2024
2 parents 3d57901 + a6fe657 commit 46e0667
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0']
php-versions: ['7.3', '7.4', '8.0','8.1','8.2']
name: PHP ${{ matrix.php-versions }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"hostnet/path-composer-plugin-lib": "^1.0.5",
"slevomat/coding-standard": "^8.6.2",
"squizlabs/php_codesniffer": "^3.6.2",
"symfony/filesystem": "^4.0||^5.0"
"symfony/filesystem": "^4.0||^5.0||^6.0||^7.0"
},
"require-dev": {
"composer/composer": "^2.1.14",
Expand Down
25 changes: 11 additions & 14 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.3/phpunit.xsd"
colors="true" bootstrap="vendor/squizlabs/php_codesniffer/tests/bootstrap.php">
<testsuites>
<testsuite name="hostnet/phpcs-tool test suite">
<directory>./test/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>./src</directory>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" colors="true" bootstrap="vendor/squizlabs/php_codesniffer/tests/bootstrap.php">
<coverage>
<include>
<directory>./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="hostnet/phpcs-tool test suite">
<directory>./test/</directory>
</testsuite>
</testsuites>
</phpunit>
2 changes: 0 additions & 2 deletions src/Hostnet/Sniffs/Commenting/FileCommentCopyrightSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ class FileCommentCopyrightSniff implements Sniff

/**
* Returns an array of tokens this test wants to listen for.
*
* @return array
*/
public function register(): array
{
Expand Down
1 change: 0 additions & 1 deletion test/Hostnet/Tests/PhpUnit/NamespaceUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public function getErrorList(): array
* should represent the number of warnings that should occur on that line.
*
* @param string $filename
* @return array
*/
public function getWarningList($filename = null): array
{
Expand Down

0 comments on commit 46e0667

Please sign in to comment.