Skip to content

Commit 587e481

Browse files
committed
fix: psalm issues
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent fbef120 commit 587e481

File tree

6 files changed

+170
-3
lines changed

6 files changed

+170
-3
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/phpseclib/File/X509.php
2+
+++ b/phpseclib/File/X509.php
3+
@@ -2393,7 +2393,7 @@ class X509
4+
/**
5+
* Load a Certificate Revocation List
6+
*
7+
- * @param string $crl
8+
+ * @param string|array $crl
9+
* @param int $mode
10+
* @return mixed
11+
*/

REUSE.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ SPDX-License-Identifier = "CC0-1.0"
1717
[[annotations]]
1818
path = [
1919
".devcontainer/devcontainer.json",
20+
".patches/**",
2021
"appinfo/info.xml",
2122
"composer.json",
2223
"composer.lock",
@@ -38,6 +39,8 @@ path = [
3839
"openapi.json",
3940
"package-lock.json",
4041
"package.json",
42+
"patches.json",
43+
"patches.lock.json",
4144
"tests/php/phpunit.xml",
4245
"psalm.xml",
4346
"src/types/openapi/openapi-administration.ts",

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"classmap-authoritative": true,
1111
"sort-packages": true,
1212
"allow-plugins": {
13-
"bamarni/composer-bin-plugin": true
13+
"bamarni/composer-bin-plugin": true,
14+
"cweagans/composer-patches": true
1415
},
1516
"platform": {
1617
"php": "8.2"
@@ -38,7 +39,8 @@
3839
"bamarni-bin": {
3940
"bin-links": true,
4041
"forward-command": true
41-
}
42+
},
43+
"patches-file": "patches.json"
4244
},
4345
"autoload": {
4446
"psr-4": {
@@ -55,6 +57,7 @@
5557
}
5658
},
5759
"require": {
60+
"cweagans/composer-patches": "^2.0",
5861
"phpseclib/phpseclib": "^3.0"
5962
}
6063
}

composer.lock

Lines changed: 124 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

patches.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"patches": {
3+
"phpseclib/phpseclib": [
4+
{
5+
"description": "Fix loadCRL method parameter type annotation",
6+
"url": ".patches/x509-loadcrl-param-fix.diff"
7+
}
8+
]
9+
}
10+
}

patches.lock.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"_hash": "ab356137968384649e209979dfb836f69e34d12fc79faf576840ce575607c97d",
3+
"patches": {
4+
"phpseclib/phpseclib": [
5+
{
6+
"package": "phpseclib/phpseclib",
7+
"description": "Fix loadCRL method parameter type annotation",
8+
"url": ".patches/x509-loadcrl-param-fix.diff",
9+
"sha256": "902d4ccdbc5178bba4d27f4ee3b57d8e41227492ced56e2252e05da0d65a4956",
10+
"depth": 1,
11+
"extra": {
12+
"provenance": "patches-file:patches.json"
13+
}
14+
}
15+
]
16+
}
17+
}

0 commit comments

Comments
 (0)