Skip to content

Commit 5eb198b

Browse files
authored
tidy up (#8)
1 parent b2b82e1 commit 5eb198b

File tree

3 files changed

+9
-19
lines changed

3 files changed

+9
-19
lines changed

.github/workflows/code_analysis.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ jobs:
3636
name: 'Tests'
3737
run: vendor/bin/phpunit
3838

39-
-
40-
name: 'PHP Linter'
41-
run: vendor/bin/parallel-lint src tests
42-
43-
-
44-
name: 'Check Commented Code'
45-
run: vendor/bin/easy-ci check-commented-code src tests --ansi
46-
4739
-
4840
name: 'Check Active Classes'
4941
run: vendor/bin/class-leak check src --ansi

composer.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,18 @@
55
"license": "MIT",
66
"require": {
77
"php": ">=8.1",
8-
"phpstan/phpstan": "^1.10"
8+
"phpstan/phpstan": "^1.10.52"
99
},
1010
"require-dev": {
11-
"illuminate/container": "^10.23",
12-
"php-parallel-lint/php-parallel-lint": "^1.3",
13-
"phpstan/extension-installer": "^1.2",
11+
"illuminate/container": "^10.39",
12+
"phpstan/extension-installer": "^1.3",
1413
"phpunit/phpunit": "^10.3",
1514
"rector/rector": "^0.18",
16-
"symfony/dependency-injection": "^6.2",
15+
"symfony/dependency-injection": "^6.4",
1716
"symfony/finder": "^6.2",
18-
"symplify/easy-ci": "11.3.1.72",
1917
"symplify/easy-coding-standard": "^12.0",
20-
"symplify/phpstan-rules": "^12.0",
21-
"tomasvotruba/class-leak": "0.1.1.72",
22-
"tomasvotruba/unused-public": "^0.3",
18+
"symplify/phpstan-rules": "^12.4",
19+
"tomasvotruba/class-leak": "^0.2",
2320
"tracy/tracy": "^2.9"
2421
},
2522
"autoload": {

src/ErrorFormatter/SymplifyErrorFormatter.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Symplify\PHPStanExtensions\ErrorFormatter;
66

7-
use Nette\Utils\Strings;
87
use PHPStan\Analyser\Error;
98
use PHPStan\Command\AnalysisResult;
109
use PHPStan\Command\ErrorFormatter\ErrorFormatter;
@@ -87,7 +86,9 @@ private function separator(): void
8786
private function getRelativePath(string $filePath): string
8887
{
8988
// remove trait clutter
90-
$clearFilePath = Strings::replace($filePath, self::FILE_WITH_TRAIT_CONTEXT_REGEX, '$1');
89+
/** @var string $clearFilePath */
90+
$clearFilePath = preg_replace(self::FILE_WITH_TRAIT_CONTEXT_REGEX, '$1', $filePath);
91+
9192
if (! file_exists($clearFilePath)) {
9293
return $clearFilePath;
9394
}

0 commit comments

Comments
 (0)