Skip to content

Commit

Permalink
psalm 6 with its PHP reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoll committed Dec 16, 2024
1 parent 591bd69 commit 5ab9147
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ jobs:
php_version:
# - 7.2
# - 7.3
- 7.4
- 8.0
# - 7.4
# - 8.0
- 8.1
- 8.2
- 8.3
# - 8.4
- 8.4
dependencies_level:
- --prefer-lowest
- ""
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"source": "https://github.com/mayflower/mo4-coding-standard"
},
"require": {
"php": "~7.4 || ~8.0",
"php": "~8.1",
"dealerdirect/phpcodesniffer-composer-installer": "~0.7 || ~1.0",
"escapestudios/symfony2-coding-standard": "^3.10.0",
"slevomat/coding-standard": "^8.14",
Expand Down
28 changes: 5 additions & 23 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="dev-master@765dcbfe43002e52e4808b65561842784fe7bcc7">
<file src="MO4/Sniffs/Formatting/AlphabeticalUseStatementsSniff.php">
<PossiblyFalseArgument>
<code><![CDATA[\substr($a, $min)]]></code>
<code><![CDATA[\substr($b, $min)]]></code>
</PossiblyFalseArgument>
</file>
<file src="MO4/Sniffs/Formatting/UnnecessaryNamespaceUsageSniff.php">
<PossiblyFalseArgument>
<code><![CDATA[$replacement]]></code>
<code><![CDATA[$replacement]]></code>
</PossiblyFalseArgument>
</file>
<file src="MO4/Sniffs/Strings/VariableInDoubleQuotedStringSniff.php">
<PossiblyFalseArgument>
<code><![CDATA[\substr($content, 0, $pos)]]></code>
<code><![CDATA[\substr($content, 0, $pos)]]></code>
<code><![CDATA[\substr($content, 0, $pos)]]></code>
<code><![CDATA[\substr($content, 0, $pos)]]></code>
</PossiblyFalseArgument>
<PossiblyFalseOperand>
<code><![CDATA[$after]]></code>
<code><![CDATA[$before]]></code>
</PossiblyFalseOperand>
<file src="MO4/Library/PregLibrary.php">
<ArgumentTypeCoercion>
<code><![CDATA[$flags]]></code>
<code><![CDATA[$pattern]]></code>
</ArgumentTypeCoercion>
</file>
</files>

0 comments on commit 5ab9147

Please sign in to comment.