Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ jobs:
name: 'Coding Standard'
run: composer fix-cs --ansi

-
name: 'Class Leak'
run: vendor/bin/class-leak check src tests --skip-path=Fixture --skip-path=Source --skip-type="Rector\\ArgTyper\\PHPStan\\IgnoreAllErrorsExceptArgTyperErrorExtension"

-
name: 'Tests'
run: vendor/bin/phpunit
Expand All @@ -56,7 +52,7 @@ jobs:
# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3
coverage: none

# composer install cache - https://github.com/ramsey/composer-install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/downgraded_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
-
uses: "shivammathur/setup-php@v2"
with:
php-version: 8.2
php-version: 8.3
coverage: none

# invoke patches
Expand Down
19 changes: 10 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,27 @@
"bin/argtyper"
],
"require": {
"php": "^8.2",
"illuminate/container": "^12.39",
"nette/utils": "^4.0",
"php": "^8.3",
"illuminate/container": "12.39.*",
"nette/utils": "^4.1",
"phpstan/phpstan": "^2.1",
"rector/rector": "^2.2",
"rector/rector": "^2.3",
"symfony/console": "^6.4",
"symfony/finder": "^7.3",
"symfony/process": "^7.3",
"webmozart/assert": "^1.12"
"symfony/finder": "^7.4",
"symfony/process": "^7.4",
"webmozart/assert": "^1.12|^2.0"
},
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.4",
"phpecs/phpecs": "^2.2",
"phpecs/phpecs": "^2.3",
"phpstan/extension-installer": "^1.4",
"phpunit/phpunit": "^11.5",
"rector/jack": "^0.5.1",
"shipmonk/composer-dependency-analyser": "^1.8",
"symplify/phpstan-extensions": "^12.0",
"tomasvotruba/class-leak": "^2.1",
"tomasvotruba/unused-public": "^2.1",
"tracy/tracy": "^2.10"
"tracy/tracy": "^2.11"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/ProjectDirectoryFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class ProjectDirectoryFinder
* Directory names commonly used as PHP source directories
* @var string[]
*/
private const POSSIBLE_CODE_DIRECTORIES = ['src', 'lib', 'app', 'test', 'tests'];
private const array POSSIBLE_CODE_DIRECTORIES = ['src', 'lib', 'app', 'test', 'tests'];

/**
* @return string[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class IgnoreAllErrorsExceptArgTyperErrorExtension implements IgnoreErrorEx
{
public function shouldIgnore(Error $error, Node $node, Scope $scope): bool
{
// Ignore all errors since ArgTyper only collects types and doesn't throw errors
// Ignore all errors since ArgTyper only collects types and doesn't throw errors
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public function testFloatAsInt(): void
/**
* @return string[]
*/
#[\Override]
public static function getAdditionalConfigFiles(): array
{
return [__DIR__ . '/../../../config/phpstan-collecting-data.neon'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function test(): void
/**
* @return string[]
*/
#[\Override]
public static function getAdditionalConfigFiles(): array
{
return [__DIR__ . '/../../../config/phpstan-collecting-data.neon'];
Expand Down
Loading