Skip to content

Commit a246a59

Browse files
authored
Bugs (#197)
1 parent b03ee86 commit a246a59

File tree

299 files changed

+709
-489
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

299 files changed

+709
-489
lines changed

.github/workflows/bc-break-test.yml

-23
This file was deleted.

.github/workflows/functional-tests.yml

+1-1
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.2', '7.3', '7.4', '8.0', '8.1']
1212
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
1313

1414
steps:

.github/workflows/mutation-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
run: git fetch --depth=1 origin $GITHUB_BASE_REF
3333

3434
- name: Infection
35-
run: ./vendor/bin/infection --logger-github --git-diff-filter=AM -s --threads=$(nproc) --min-msi=0 --min-covered-msi=0
35+
run: ./vendor/bin/infection --logger-github -s --threads=$(nproc) --min-msi=30 --min-covered-msi=50

.github/workflows/unit-tests.yml

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

1414
steps:

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
report.md
33
composer.lock
44
vendor
5+
*.cache
6+
*.log

.php_cs.dist renamed to .php-cs-fixer.dist.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
$header = 'The MIT License (MIT)
44
5-
Copyright (c) 2014-2020 Spomky-Labs
5+
Copyright (c) 2014-2021 Spomky-Labs
66
77
This software may be modified and distributed under the terms
88
of the MIT license. See the LICENSE file for details.';
@@ -12,7 +12,7 @@
1212
->in(__DIR__.'/src')
1313
;
1414

15-
return PhpCsFixer\Config::create()
15+
return (new PhpCsFixer\Config)
1616
->setRules([
1717
'@PSR1' => true,
1818
'@PSR2' => true,
@@ -50,7 +50,6 @@
5050
'comment_type' => 'all_multiline',
5151
],
5252
'php_unit_test_annotation' => [
53-
'case' => 'snake',
5453
'style' => 'annotation',
5554
],
5655
'php_unit_test_case_static_method_calls' => true,

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ Webauthn Framework
44
![Build Status](https://github.com/web-auth/webauthn-framework/workflows/Coding%20Standards/badge.svg)
55
![Build Status](https://github.com/web-auth/webauthn-framework/workflows/Static%20Analyze/badge.svg)
66

7-
![Build Status](https://github.com/web-auth/webauthn-framework/workflows/Backwards%20compatibility%20verification/badge.svg)
8-
97
![Build Status](https://github.com/web-auth/webauthn-framework/workflows/Unit%20Tests/badge.svg)
108
![Build Status](https://github.com/web-auth/webauthn-framework/workflows/Functional%20Tests/badge.svg)
119
![Build Status](https://github.com/web-auth/webauthn-framework/workflows/Lowest%20versions%20tests/badge.svg)

composer.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"ramsey/uuid": "^3.8|^4.0",
5757
"spomky-labs/base64url": "^2.0",
5858
"spomky-labs/cbor-bundle": "^2.0",
59-
"spomky-labs/cbor-php": "^1.1|^2.0",
59+
"spomky-labs/cbor-php": "^1.0|^2.0",
6060
"symfony/config": "^4.4|^5.0",
6161
"symfony/dependency-injection": "^4.4|^5.0",
6262
"symfony/framework-bundle": "^4.4|^5.0",
@@ -88,17 +88,17 @@
8888
"doctrine/dbal": "^2.9|^3.0",
8989
"doctrine/doctrine-bundle": "^2.0",
9090
"doctrine/orm": "^2.6",
91-
"friendsofphp/php-cs-fixer": "^2.16",
92-
"infection/infection": "^0.15||^0.16||^0.17||^0.18||^0.19||^0.20||^0.21",
91+
"friendsofphp/php-cs-fixer": "^3.0",
92+
"infection/infection": ">=0.15|<0.24",
9393
"monolog/monolog": "^2.0",
9494
"nyholm/psr7": "^1.1",
9595
"php-http/curl-client": "^2.0",
9696
"php-http/mock-client": "^1.3",
97-
"phpstan/phpstan": "^0.12",
98-
"phpstan/phpstan-beberlei-assert": "^0.12",
99-
"phpstan/phpstan-deprecation-rules": "^0.12",
100-
"phpstan/phpstan-phpunit": "^0.12",
101-
"phpstan/phpstan-strict-rules": "^0.12",
97+
"phpstan/phpstan": "^1.0",
98+
"phpstan/phpstan-beberlei-assert": "^1.0",
99+
"phpstan/phpstan-deprecation-rules": "^1.0",
100+
"phpstan/phpstan-phpunit": "^1.0",
101+
"phpstan/phpstan-strict-rules": "^1.0",
102102
"phpunit/phpunit": "^8.0||^9.0",
103103
"symfony/browser-kit": "^4.4|^5.0",
104104
"symfony/http-client": "^4.4|^5.0",

phpstan.neon

+14-9
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,36 @@ parameters:
1010
- '#Call to deprecated function Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ref\(\)(.*)#'
1111
- '#Parameter (.*) of class FG\\ASN1\\Universal\\Integer constructor expects int, string given\.#'
1212
- '#Instanceof between Symfony\\Component\\HttpFoundation\\Response and Symfony\\Component\\HttpFoundation\\Response will always evaluate to true\.#'
13-
- '#Parameter (.*) of class Jose\\Component\\Core\\AlgorithmManager constructor expects array\<Jose\\Component\\Core\\Algorithm\>\, array\<int\, object\> given\.#'
13+
- message: '#Call to deprecated method loadUserByUsername\(\) of class .*#'
14+
count: 1
15+
path: src/symfony/src/Security/Authentication/Provider/WebauthnProvider.php
16+
- message: '#Class Webauthn\\Bundle\\Security\\Authentication\\Provider\\WebauthnProvider implements deprecated interface .*#'
17+
count: 1
18+
path: src/symfony/src/Security/Authentication/Provider/WebauthnProvider.php
1419
- message: '#Function .* is unsafe to use\. .* Please add .* at the beginning of the file to use the variant provided by the .* library\.#'
1520
count: 1
16-
path: 'src/cose/src/Algorithm/ManagerFactory.php'
21+
path: src/cose/src/Algorithm/ManagerFactory.php
1722
- message: '#Function .* is unsafe to use\. .* Please add .* at the beginning of the file to use the variant provided by the .* library\.#'
1823
count: 1
19-
path: 'src/cose/src/Algorithm/Signature/ECDSA/ECDSA.php'
24+
path: src/cose/src/Algorithm/Signature/ECDSA/ECDSA.php
2025
- message: '#Function .* is unsafe to use\. .* Please add .* at the beginning of the file to use the variant provided by the .* library\.#'
2126
count: 2
22-
path: 'src/cose/src/Algorithm/Signature/ECDSA/ECSignature.php'
27+
path: src/cose/src/Algorithm/Signature/ECDSA/ECSignature.php
2328
- message: '#Function .* is unsafe to use\. .* Please add .* at the beginning of the file to use the variant provided by the .* library\.#'
2429
count: 1
25-
path: 'src/cose/src/Algorithm/Signature/RSA/PSSRSA.php'
30+
path: src/cose/src/Algorithm/Signature/RSA/PSSRSA.php
2631
- message: '#Function .* is unsafe to use\. .* Please add .* at the beginning of the file to use the variant provided by the .* library\.#'
2732
count: 1
28-
path: 'src/cose/src/Algorithm/Signature/RSA/RSA.php'
33+
path: src/cose/src/Algorithm/Signature/RSA/RSA.php
2934
- message: '#Function .* is unsafe to use\. .* Please add .* at the beginning of the file to use the variant provided by the .* library\.#'
3035
count: 2
31-
path: 'src/cose/src/Key/Ec2Key.php'
36+
path: src/cose/src/Key/Ec2Key.php
3237
- message: '#Function .* is unsafe to use\. .* Please add .* at the beginning of the file to use the variant provided by the .* library\.#'
3338
count: 1
34-
path: 'src/cose/src/Key/Key.php'
39+
path: src/cose/src/Key/Key.php
3540
- message: '#Function .* is unsafe to use\. .* Please add .* at the beginning of the file to use the variant provided by the .* library\.#'
3641
count: 3
37-
path: 'src/cose/src/Key/RsaKey.php'
42+
path: src/cose/src/Key/RsaKey.php
3843
checkMissingIterableValueType: false
3944
checkGenericClassInNonGenericObjectType: false
4045
treatPhpDocTypesAsCertain: false

src/conformance-toolset/src/Controller/AssertionRequestController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/conformance-toolset/src/Controller/AssertionResponseController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/conformance-toolset/src/Controller/AssertionResponseControllerFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/conformance-toolset/src/Controller/AttestationRequestController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/conformance-toolset/src/Controller/AttestationResponseController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/conformance-toolset/src/Controller/AttestationResponseControllerFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/conformance-toolset/src/Dto/ServerPublicKeyCredentialCreationOptionsRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/conformance-toolset/src/Dto/ServerPublicKeyCredentialRequestOptionsRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Algorithm.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Mac/HS256.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Mac/HS256Truncated64.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Mac/HS384.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Mac/HS512.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Mac/Hmac.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Mac/Mac.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Manager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/ManagerFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Signature/ECDSA/ECDSA.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Signature/ECDSA/ECSignature.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Signature/ECDSA/ES256.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Signature/ECDSA/ES256K.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Signature/ECDSA/ES384.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Signature/ECDSA/ES512.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Signature/EdDSA/ED256.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

src/cose/src/Algorithm/Signature/EdDSA/ED512.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* The MIT License (MIT)
77
*
8-
* Copyright (c) 2014-2020 Spomky-Labs
8+
* Copyright (c) 2014-2021 Spomky-Labs
99
*
1010
* This software may be modified and distributed under the terms
1111
* of the MIT license. See the LICENSE file for details.

0 commit comments

Comments
 (0)