Skip to content

Commit 7ce06e9

Browse files
authored
Merge pull request #300 from web-token/TestFix
Tests fixed
2 parents 04d348a + 23eb1bc commit 7ce06e9

37 files changed

+186
-143
lines changed

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: shivammathur/setup-php@v2
2222
with:
2323
php-version: ${{ matrix.php-versions }}
24-
extensions: json, mbstring, openssl
24+
extensions: json, mbstring, openssl, gmp
2525
coverage: xdebug
2626

2727
- name: Install Composer dependencies

.github/workflows/functional-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
operating-system: [ubuntu-latest]
11-
php-versions: ['7.2', '7.3', '7.4', '8.0']
11+
php-versions: ['7.3', '7.4', '8.0']
1212
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
1313

1414
steps:
@@ -20,7 +20,7 @@ jobs:
2020
uses: shivammathur/setup-php@v2
2121
with:
2222
php-version: ${{ matrix.php-versions }}
23-
extensions: json, mbstring, openssl
23+
extensions: json, mbstring, openssl, gmp
2424
coverage: xdebug
2525

2626
- name: Validate composer.json and composer.lock

.github/workflows/lowest-version-tests.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/mutation-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: shivammathur/setup-php@v2
2222
with:
2323
php-version: ${{ matrix.php-versions }}
24-
extensions: json, mbstring, openssl
24+
extensions: json, mbstring, openssl, gmp
2525
coverage: xdebug
2626

2727
- name: Install Composer dependencies

.github/workflows/security.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/static-analyze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: shivammathur/setup-php@v2
2222
with:
2323
php-version: ${{ matrix.php-versions }}
24-
extensions: json, mbstring, openssl
24+
extensions: json, mbstring, openssl, gmp
2525
coverage: xdebug
2626

2727
- name: Install Composer dependencies

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
operating-system: [ ubuntu-latest ]
11-
php-versions: ['7.2', '7.3', '7.4', '8.0']
11+
php-versions: ['7.3', '7.4', '8.0']
1212
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
1313

1414
steps:
@@ -21,7 +21,7 @@ jobs:
2121
uses: shivammathur/setup-php@v2
2222
with:
2323
php-version: ${{ matrix.php-versions }}
24-
extensions: json, mbstring, openssl
24+
extensions: json, mbstring, openssl, gmp
2525
coverage: xdebug
2626

2727
- name: Install Composer dependencies

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ PHP JWT Framework
33

44
![Build Status](https://github.com/web-token/jwt-framework/workflows/Coding%20Standards/badge.svg)
55
![Build Status](https://github.com/web-token/jwt-framework/workflows/Static%20Analyze/badge.svg)
6-
![Build Status](https://github.com/web-token/jwt-framework/workflows/Security/badge.svg)
76

87
![Build Status](https://github.com/web-token/jwt-framework/workflows/Backwards%20compatibility%20verification/badge.svg)
98

109
![Build Status](https://github.com/web-token/jwt-framework/workflows/Unit%20Tests/badge.svg)
1110
![Build Status](https://github.com/web-token/jwt-framework/workflows/Functional%20Tests/badge.svg)
12-
![Build Status](https://github.com/web-token/jwt-framework/workflows/Lowest%20versions%20tests/badge.svg)
1311

1412
![Build Status](https://github.com/web-token/jwt-framework/workflows/Mutation%20Testing/badge.svg)
1513

composer.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,6 @@
140140
"symfony/serializer": "Use the Symfony serializer to serialize/unserialize JWS and JWE tokens.",
141141
"symfony/var-dumper": "Used to show data on the debug toolbar."
142142
},
143-
"extra": {
144-
"branch-alias": {
145-
"v1.0": "1.0.x-dev",
146-
"v1.1": "1.1.x-dev",
147-
"v1.2": "1.2.x-dev",
148-
"v1.3": "1.3.x-dev",
149-
"v2.0": "2.0.x-dev",
150-
"v2.1": "2.1.x-dev"
151-
}
152-
},
153143
"conflict": {
154144
"spomky-labs/jose": "*"
155145
},

phpstan.neon

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,21 @@ parameters:
66
checkGenericClassInNonGenericObjectType: false
77
treatPhpDocTypesAsCertain: false
88
ignoreErrors:
9-
- '#Strict comparison using === between false and .* will always evaluate to false\.*#'
109
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::children\(\)#'
1110
- '#Parameter \#1 \$value of class FG\\ASN1\\Universal\\Integer constructor expects int\, string given\.#'
1211
- '#Variable static method call on Jose\\Component\\Core\\Util\\Hash\.#'
1312
- '#Return type \(void\) of method Jose\\Bundle\\JoseFramework\\Routing\\JWKSetLoader::getResolver\(\) should be compatible with return type \(Symfony\\Component\\Config\\Loader\\LoaderResolverInterface\) of method Symfony\\Component\\Config\\Loader\\LoaderInterface::getResolver\(\)#'
1413
- '#Method Jose\\Bundle\\JoseFramework\\Routing\\JWKSetLoader::(supports|load)\(\) has parameter \$type with no typehint specified\.#'
1514
- '#.* should be contravariant with .*#'
1615
- '#Call to deprecated function .*#'
16+
- '#Parameter .* of function openssl_pkey_derive expects resource, string given\.#'
17+
- '#Parameter .* of function call_user_func_array expects callable\(\)\: .* given\.#'
18+
- '#Array .* does not accept object\.#'
19+
- '#Invalid type object to throw\.#'
20+
- '#Strict comparison using === between .* and .* will always evaluate to false\.#'
1721
includes:
1822
- vendor/phpstan/phpstan-strict-rules/rules.neon
1923
- vendor/phpstan/phpstan-phpunit/extension.neon
2024
- vendor/phpstan/phpstan-phpunit/rules.neon
2125
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
22-
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
26+
- vendor/phpstan/phpstan/conf/bleedingEdge.neon

0 commit comments

Comments
 (0)