Skip to content

Commit

Permalink
run tests on php 8.2 and 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasReker committed Jan 1, 2024
1 parent 94ac596 commit 9e2f3f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
operating-system: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
php-versions: [ '7.4', '8.0', '8.1' ]
php-versions: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"require": {
"php": ">=7.4",
"ext-mbstring": "*",
"symfony/finder": "^4.4 || ^5.4"
"symfony/finder": "^4.4 || ^5.4 || ^6.4"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.28",
"friendsofphp/php-cs-fixer": "^3.11",
"phpstan/phpstan": "^1.8",
"phpunit/phpunit": "^9.5"
"ergebnis/composer-normalize": "^2.41.1",
"friendsofphp/php-cs-fixer": "^3.45.0",
"phpstan/phpstan": "^1.10.50",
"phpunit/phpunit": "^10.5.5"
},
"autoload": {
"psr-4": {
Expand Down
29 changes: 0 additions & 29 deletions src/Service/ScannerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public function __construct()
}

/**
* {@inheritDoc}
*
* @param string[] $excludedNames
*/
public function setExcludeNames(array $excludedNames): self
Expand All @@ -40,18 +38,13 @@ public function setExcludeNames(array $excludedNames): self
}

/**
* {@inheritDoc}
*
* @return string[]
*/
public function dryRun(): array
{
return $this->scanner->getPaths();
}

/**
* {@inheritDoc}
*/
public function fix(): void
{
$paths = $this->scanner->getPaths();
Expand All @@ -68,19 +61,13 @@ public function fix(): void
}
}

/**
* {@inheritDoc}
*/
public function setDefaultDirectoryMode(int $defaultDirectoryMode): self
{
$this->scanner->setDefaultDirectoryMode($defaultDirectoryMode);

return $this;
}

/**
* {@inheritDoc}
*/
public function setDefaultFileMode(int $defaultFileMode): self
{
$this->scanner->setDefaultFileMode($defaultFileMode);
Expand All @@ -89,8 +76,6 @@ public function setDefaultFileMode(int $defaultFileMode): self
}

/**
* {@inheritDoc}
*
* @param int[] $excludedFileModes
*/
public function setExcludedFileModes(array $excludedFileModes): self
Expand All @@ -111,8 +96,6 @@ public function setExcludedDirectoryModes(array $excludedDirectoryModes): self
}

/**
* {@inheritDoc}
*
* @param string[] $excludedPaths
*/
public function setExcludedPaths(array $excludedPaths): self
Expand All @@ -122,19 +105,13 @@ public function setExcludedPaths(array $excludedPaths): self
return $this;
}

/**
* {@inheritDoc}
*/
public function doIgnoreDirectories(bool $ignoredDirectories = true): self
{
$this->scanner->doExcludeDirectories($ignoredDirectories);

return $this;
}

/**
* {@inheritDoc}
*/
public function doIgnoreFiles(bool $ignoredFiles = true): self
{
$this->scanner->doExcludeFiles($ignoredFiles);
Expand All @@ -143,8 +120,6 @@ public function doIgnoreFiles(bool $ignoredFiles = true): self
}

/**
* {@inheritDoc}
*
* @param string[] $directories
*/
public function scan(array $directories): self
Expand Down Expand Up @@ -215,8 +190,6 @@ private function setFilteredPaths(Finder $paths): void
}

/**
* {@inheritDoc}
*
* @param string[] $paths
*/
public function setPaths(array $paths): self
Expand All @@ -227,8 +200,6 @@ public function setPaths(array $paths): self
}

/**
* {@inheritDoc}
*
* @param string[] $names
*/
public function setNames(array $names): self
Expand Down

0 comments on commit 9e2f3f0

Please sign in to comment.