Skip to content

Commit ec7a503

Browse files
committed
wip
1 parent d31baf5 commit ec7a503

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

.github/workflows/ci.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@ jobs:
4040
matrix:
4141
os: [ubuntu-latest]
4242
php_version:
43-
- 7.2
44-
- 7.3
4543
- 7.4
4644
- 8.0
4745
- 8.1
4846
- 8.2
4947
- 8.3
50-
- 8.4
48+
# - 8.4
5149
dependencies_level:
5250
- --prefer-lowest
5351
- ""
@@ -94,7 +92,7 @@ jobs:
9492
run: vendor/bin/phpstan analyse --no-progress
9593
- name: Run psalm
9694
if: ${{ matrix.os != 'windows-latest' }}
97-
run: vendor/bin/psalm --show-info=true
95+
run: vendor/bin/psalm
9896
- name: Run phan
9997
if: ${{ matrix.os != 'windows-latest' }}
10098
run: vendor/bin/phan

MO4/Sniffs/Formatting/AlphabeticalUseStatementsSniff.php

+1
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ private function findNewDestination(File $phpcsFile, int $stackPtr, string $impo
293293
$tokens = $phpcsFile->getTokens();
294294

295295
$line = $tokens[$stackPtr]['line'];
296+
/** @var int|bool $prevLine */
296297
$prevLine = false;
297298
$prevPtr = $stackPtr;
298299

MO4/Sniffs/Formatting/UnnecessaryNamespaceUsageSniff.php

+1
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ private function checkShorthandPossible(File $phpcsFile, array $useStatements, s
376376
if (true === $isDocBlock) {
377377
$tokens = $phpcsFile->getTokens();
378378
$oldContent = $tokens[$startPtr]['content'];
379+
/** @var string $newContent */
379380
$newContent = \str_replace($className, $replacement, $oldContent);
380381
$phpcsFile->fixer->replaceToken($startPtr, $newContent);
381382
} else {

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"source": "https://github.com/mayflower/mo4-coding-standard"
2424
},
2525
"require": {
26-
"php": "~7.2 || ~8.0",
26+
"php": "~7.4 || ~8.0",
2727
"dealerdirect/phpcodesniffer-composer-installer": "~0.7 || ~1.0",
2828
"escapestudios/symfony2-coding-standard": "^3.10.0",
2929
"slevomat/coding-standard": "^8.14",
@@ -36,7 +36,7 @@
3636
"phpstan/phpstan-strict-rules": "^1.0",
3737
"phpunit/phpunit": "^7.5.20 || ^8.5.36 || ^9.6.15",
3838
"psalm/plugin-phpunit": "^0.18",
39-
"vimeo/psalm": "^4.30"
39+
"vimeo/psalm": "^5.26"
4040
},
4141
"config": {
4242
"allow-plugins": {

phpstan.neon

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ parameters:
55
paths:
66
- %rootDir%/../../../MO4
77
- %rootDir%/../../../tests
8-
checkMissingIterableValueType: false
8+
ignoreErrors:
9+
- identifier: missingType.iterableValue
910
includes:
1011
- vendor/phpstan/phpstan-strict-rules/rules.neon

0 commit comments

Comments
 (0)