fixes declaration of function checkRequestSignatureUsingPublicKey

Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
pull/696/head
Cyrille Bollu 2019-08-23 16:02:22 +02:00
rodzic 78cf0303cd
commit 8fe06456c0
2 zmienionych plików z 30 dodań i 30 usunięć

56
composer.lock wygenerowano
Wyświetl plik

@ -1,10 +1,10 @@
{ {
"_readme": [ "_readme": [
"This file locks the dependencies of your project to a known state", "This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "f93a783c86bad53b0b8486db3fc61380", "content-hash": "f5575fb747924736058725f236d7fdae",
"packages": [ "packages": [
{ {
"name": "daita/my-small-php-tools", "name": "daita/my-small-php-tools",
@ -328,18 +328,18 @@
"authors": [ "authors": [
{ {
"name": "Arne Blankerts", "name": "Arne Blankerts",
"role": "Developer", "email": "arne@blankerts.de",
"email": "arne@blankerts.de" "role": "Developer"
}, },
{ {
"name": "Sebastian Heuer", "name": "Sebastian Heuer",
"role": "Developer", "email": "sebastian@phpeople.de",
"email": "sebastian@phpeople.de" "role": "Developer"
}, },
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"role": "Developer", "email": "sebastian@phpunit.de",
"email": "sebastian@phpunit.de" "role": "Developer"
} }
], ],
"description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
@ -375,18 +375,18 @@
"authors": [ "authors": [
{ {
"name": "Arne Blankerts", "name": "Arne Blankerts",
"role": "Developer", "email": "arne@blankerts.de",
"email": "arne@blankerts.de" "role": "Developer"
}, },
{ {
"name": "Sebastian Heuer", "name": "Sebastian Heuer",
"role": "Developer", "email": "sebastian@phpeople.de",
"email": "sebastian@phpeople.de" "role": "Developer"
}, },
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"role": "Developer", "email": "sebastian@phpunit.de",
"email": "sebastian@phpunit.de" "role": "Developer"
} }
], ],
"description": "Library for handling version information and constraints", "description": "Library for handling version information and constraints",
@ -657,8 +657,8 @@
"authors": [ "authors": [
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"role": "lead", "email": "sebastian@phpunit.de",
"email": "sebastian@phpunit.de" "role": "lead"
} }
], ],
"description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
@ -705,8 +705,8 @@
"authors": [ "authors": [
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"role": "lead", "email": "sb@sebastian-bergmann.de",
"email": "sb@sebastian-bergmann.de" "role": "lead"
} }
], ],
"description": "FilterIterator implementation that filters files based on a list of suffixes.", "description": "FilterIterator implementation that filters files based on a list of suffixes.",
@ -747,8 +747,8 @@
"authors": [ "authors": [
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"role": "lead", "email": "sebastian@phpunit.de",
"email": "sebastian@phpunit.de" "role": "lead"
} }
], ],
"description": "Simple template engine.", "description": "Simple template engine.",
@ -796,8 +796,8 @@
"authors": [ "authors": [
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"role": "lead", "email": "sb@sebastian-bergmann.de",
"email": "sb@sebastian-bergmann.de" "role": "lead"
} }
], ],
"description": "Utility class for timing", "description": "Utility class for timing",
@ -927,8 +927,8 @@
"authors": [ "authors": [
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"role": "lead", "email": "sebastian@phpunit.de",
"email": "sebastian@phpunit.de" "role": "lead"
} }
], ],
"description": "The PHP Unit Testing framework.", "description": "The PHP Unit Testing framework.",
@ -1551,8 +1551,8 @@
"authors": [ "authors": [
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"role": "lead", "email": "sebastian@phpunit.de",
"email": "sebastian@phpunit.de" "role": "lead"
} }
], ],
"description": "Library that helps with managing the version number of Git-hosted PHP projects", "description": "Library that helps with managing the version number of Git-hosted PHP projects",
@ -1650,8 +1650,8 @@
"authors": [ "authors": [
{ {
"name": "Arne Blankerts", "name": "Arne Blankerts",
"role": "Developer", "email": "arne@blankerts.de",
"email": "arne@blankerts.de" "role": "Developer"
} }
], ],
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",

Wyświetl plik

@ -396,12 +396,12 @@ class SignatureService {
* @param string $publicKey * @param string $publicKey
* @param array $sign * @param array $sign
* @param string $estimated * @param string $estimated
* @param bool $signed * @param string $signed
* *
* @throws SignatureException * @throws SignatureException
*/ */
private function checkRequestSignatureUsingPublicKey( private function checkRequestSignatureUsingPublicKey(
string $publicKey, array $sign, string $estimated, bool $signed string $publicKey, array $sign, string $estimated, string $signed
) { ) {
$algorithm = $this->getAlgorithmFromSignature($sign); $algorithm = $this->getAlgorithmFromSignature($sign);
if ($publicKey === '' if ($publicKey === ''