Skip to content

Commit 46e0667

Browse files
authored
Merge pull request #73 from svandervlugt/symf
Allow symfony 6 and 7
2 parents 3d57901 + a6fe657 commit 46e0667

5 files changed

Lines changed: 13 additions & 19 deletions

File tree

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
php-versions: ['7.3', '7.4', '8.0']
15+
php-versions: ['7.3', '7.4', '8.0','8.1','8.2']
1616
name: PHP ${{ matrix.php-versions }}
1717
steps:
1818
- uses: actions/checkout@v2

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"hostnet/path-composer-plugin-lib": "^1.0.5",
1010
"slevomat/coding-standard": "^8.6.2",
1111
"squizlabs/php_codesniffer": "^3.6.2",
12-
"symfony/filesystem": "^4.0||^5.0"
12+
"symfony/filesystem": "^4.0||^5.0||^6.0||^7.0"
1313
},
1414
"require-dev": {
1515
"composer/composer": "^2.1.14",

phpunit.xml.dist

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.3/phpunit.xsd"
5-
colors="true" bootstrap="vendor/squizlabs/php_codesniffer/tests/bootstrap.php">
6-
<testsuites>
7-
<testsuite name="hostnet/phpcs-tool test suite">
8-
<directory>./test/</directory>
9-
</testsuite>
10-
</testsuites>
11-
<filter>
12-
<whitelist>
13-
<directory>./src</directory>
14-
</whitelist>
15-
</filter>
2+
<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">
3+
<coverage>
4+
<include>
5+
<directory>./src</directory>
6+
</include>
7+
</coverage>
8+
<testsuites>
9+
<testsuite name="hostnet/phpcs-tool test suite">
10+
<directory>./test/</directory>
11+
</testsuite>
12+
</testsuites>
1613
</phpunit>

src/Hostnet/Sniffs/Commenting/FileCommentCopyrightSniff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ class FileCommentCopyrightSniff implements Sniff
5353

5454
/**
5555
* Returns an array of tokens this test wants to listen for.
56-
*
57-
* @return array
5856
*/
5957
public function register(): array
6058
{

test/Hostnet/Tests/PhpUnit/NamespaceUnitTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public function getErrorList(): array
3030
* should represent the number of warnings that should occur on that line.
3131
*
3232
* @param string $filename
33-
* @return array
3433
*/
3534
public function getWarningList($filename = null): array
3635
{

0 commit comments

Comments
 (0)