Skip to content

Commit 79cd76e

Browse files
committed
Update psalm to 6.x and minimum PHP to 8.1
1 parent efa8ae2 commit 79cd76e

13 files changed

+32
-12
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,10 @@ jobs:
4040
matrix:
4141
os: [ubuntu-latest]
4242
php_version:
43-
# - 7.2
44-
# - 7.3
45-
- 7.4
46-
- 8.0
4743
- 8.1
4844
- 8.2
4945
- 8.3
50-
# - 8.4
46+
- 8.4
5147
dependencies_level:
5248
- --prefer-lowest
5349
- ""

MO4/Library/PregLibrary.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,11 @@ class PregLibrary
3636
* @return array<string>|array<array>
3737
*
3838
* @throws RuntimeException
39-
*
40-
* @psalm-suppress ArgumentTypeCoercion
4139
*/
4240
public static function MO4PregSplit(string $pattern, string $subject, int $limit = -1, int $flags = 0): array
4341
{
4442
$pregSplitResult = \preg_split($pattern, $subject, $limit, $flags);
4543

46-
// @phan-suppress-next-line PhanTypeComparisonToArray
4744
if (false === $pregSplitResult) {
4845
throw new RuntimeException('Unexpected Error in MO4 Coding Standard.');
4946
}

MO4/Sniffs/Arrays/ArrayDoubleArrowAlignmentSniff.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
* @license http://spdx.org/licenses/MIT MIT License
3131
*
3232
* @link https://github.com/mayflower/mo4-coding-standard
33+
*
34+
* @psalm-api
3335
*/
3436
class ArrayDoubleArrowAlignmentSniff implements Sniff
3537
{

MO4/Sniffs/Arrays/MultiLineArraySniff.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
* @license http://spdx.org/licenses/MIT MIT License
2828
*
2929
* @link https://github.com/mayflower/mo4-coding-standard
30+
*
31+
* @psalm-api
3032
*/
3133
class MultiLineArraySniff implements Sniff
3234
{

MO4/Sniffs/Commenting/PropertyCommentSniff.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
* @license http://spdx.org/licenses/MIT MIT License
3333
*
3434
* @link https://github.com/mayflower/mo4-coding-standard
35+
*
36+
* @psalm-api
3537
*/
3638
class PropertyCommentSniff extends AbstractScopeSniff
3739
{

MO4/Sniffs/Formatting/AlphabeticalUseStatementsSniff.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
* @license http://spdx.org/licenses/MIT MIT License
3434
*
3535
* @link https://github.com/mayflower/mo4-coding-standard
36+
*
37+
* @psalm-api
3638
*/
3739
class AlphabeticalUseStatementsSniff extends UseDeclarationSniff
3840
{

MO4/Sniffs/Formatting/UnnecessaryNamespaceUsageSniff.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
* @license http://spdx.org/licenses/MIT MIT License
3535
*
3636
* @link https://github.com/mayflower/mo4-coding-standard
37+
*
38+
* @psalm-api
3739
*/
3840
class UnnecessaryNamespaceUsageSniff implements Sniff
3941
{

MO4/Sniffs/Strings/VariableInDoubleQuotedStringSniff.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
* @license http://spdx.org/licenses/MIT MIT License
3030
*
3131
* @link https://github.com/mayflower/mo4-coding-standard
32+
*
33+
* @psalm-api
3234
*/
3335
class VariableInDoubleQuotedStringSniff implements Sniff
3436
{

MO4/Sniffs/WhiteSpace/ConstantSpacingSniff.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
* @license http://spdx.org/licenses/MIT MIT License
2828
*
2929
* @link https://github.com/mayflower/mo4-coding-standard
30+
*
31+
* @psalm-api
3032
*/
3133
class ConstantSpacingSniff implements Sniff
3234
{

MO4/Sniffs/WhiteSpace/MultipleEmptyLinesSniff.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
use PHP_CodeSniffer\Files\File;
1414
use PHP_CodeSniffer\Sniffs\Sniff;
1515

16+
/**
17+
* @psalm-api
18+
*/
1619
class MultipleEmptyLinesSniff implements Sniff
1720
{
1821
/**

0 commit comments

Comments
 (0)