Update Composer files

This commit is contained in:
Frédéric Guillot 2020-10-02 18:11:42 -07:00
parent eafd82f564
commit c5f18fb136
6 changed files with 27 additions and 160 deletions

163
composer.lock generated
View File

@ -655,20 +655,6 @@
"interoperability", "interoperability",
"standards" "standards"
], ],
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2020-09-02T16:08:58+00:00" "time": "2020-09-02T16:08:58+00:00"
}, },
{ {
@ -844,20 +830,6 @@
"portable", "portable",
"shim" "shim"
], ],
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2020-07-14T12:35:20+00:00" "time": "2020-07-14T12:35:20+00:00"
} }
], ],
@ -916,20 +888,6 @@
"constructor", "constructor",
"instantiate" "instantiate"
], ],
"funding": [
{
"url": "https://www.doctrine-project.org/sponsorship.html",
"type": "custom"
},
{
"url": "https://www.patreon.com/phpdoctrine",
"type": "patreon"
},
{
"url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator",
"type": "tidelift"
}
],
"time": "2020-05-29T17:27:14+00:00" "time": "2020-05-29T17:27:14+00:00"
}, },
{ {
@ -978,12 +936,6 @@
"object", "object",
"object graph" "object graph"
], ],
"funding": [
{
"url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy",
"type": "tidelift"
}
],
"time": "2020-06-29T13:22:24+00:00" "time": "2020-06-29T13:22:24+00:00"
}, },
{ {
@ -1236,28 +1188,28 @@
}, },
{ {
"name": "phpspec/prophecy", "name": "phpspec/prophecy",
"version": "1.11.1", "version": "1.12.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpspec/prophecy.git", "url": "https://github.com/phpspec/prophecy.git",
"reference": "b20034be5efcdab4fb60ca3a29cba2949aead160" "reference": "8ce87516be71aae9b956f81906aaf0338e0d8a2d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/b20034be5efcdab4fb60ca3a29cba2949aead160", "url": "https://api.github.com/repos/phpspec/prophecy/zipball/8ce87516be71aae9b956f81906aaf0338e0d8a2d",
"reference": "b20034be5efcdab4fb60ca3a29cba2949aead160", "reference": "8ce87516be71aae9b956f81906aaf0338e0d8a2d",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"doctrine/instantiator": "^1.2", "doctrine/instantiator": "^1.2",
"php": "^7.2", "php": "^7.2 || ~8.0, <8.1",
"phpdocumentor/reflection-docblock": "^5.0", "phpdocumentor/reflection-docblock": "^5.2",
"sebastian/comparator": "^3.0 || ^4.0", "sebastian/comparator": "^3.0 || ^4.0",
"sebastian/recursion-context": "^3.0 || ^4.0" "sebastian/recursion-context": "^3.0 || ^4.0"
}, },
"require-dev": { "require-dev": {
"phpspec/phpspec": "^6.0", "phpspec/phpspec": "^6.0",
"phpunit/phpunit": "^8.0" "phpunit/phpunit": "^8.0 || ^9.0 <9.3"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
@ -1295,7 +1247,7 @@
"spy", "spy",
"stub" "stub"
], ],
"time": "2020-07-08T12:44:21+00:00" "time": "2020-09-29T09:10:42+00:00"
}, },
{ {
"name": "phpunit/php-code-coverage", "name": "phpunit/php-code-coverage",
@ -1714,12 +1666,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Roave/SecurityAdvisories.git", "url": "https://github.com/Roave/SecurityAdvisories.git",
"reference": "0749ceaf15c136d085b722a5bb88141398a54142" "reference": "e859317fce42b1ec2d42b204285beaba541e8dbf"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/0749ceaf15c136d085b722a5bb88141398a54142", "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/e859317fce42b1ec2d42b204285beaba541e8dbf",
"reference": "0749ceaf15c136d085b722a5bb88141398a54142", "reference": "e859317fce42b1ec2d42b204285beaba541e8dbf",
"shasum": "" "shasum": ""
}, },
"conflict": { "conflict": {
@ -1822,6 +1774,8 @@
"mittwald/typo3_forum": "<1.2.1", "mittwald/typo3_forum": "<1.2.1",
"monolog/monolog": ">=1.8,<1.12", "monolog/monolog": ">=1.8,<1.12",
"namshi/jose": "<2.2", "namshi/jose": "<2.2",
"nette/application": ">=2,<2.0.19|>=2.1,<2.1.13|>=2.2,<2.2.10|>=2.3,<2.3.14|>=2.4,<2.4.16|>=3,<3.0.6",
"nette/nette": ">=2,<2.0.19|>=2.1,<2.1.13",
"nystudio107/craft-seomatic": "<3.3", "nystudio107/craft-seomatic": "<3.3",
"nzo/url-encryptor-bundle": ">=4,<4.3.2|>=5,<5.0.1", "nzo/url-encryptor-bundle": ">=4,<4.3.2|>=5,<5.0.1",
"october/backend": ">=1.0.319,<1.0.467", "october/backend": ">=1.0.319,<1.0.467",
@ -2001,17 +1955,7 @@
} }
], ],
"description": "Prevents installation of composer packages with known security vulnerabilities: no API, simply require it", "description": "Prevents installation of composer packages with known security vulnerabilities: no API, simply require it",
"funding": [ "time": "2020-10-02T17:02:13+00:00"
{
"url": "https://github.com/Ocramius",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/roave/security-advisories",
"type": "tidelift"
}
],
"time": "2020-09-24T17:02:11+00:00"
}, },
{ {
"name": "sebastian/code-unit-reverse-lookup", "name": "sebastian/code-unit-reverse-lookup",
@ -2634,20 +2578,6 @@
], ],
"description": "Symfony Debug Component", "description": "Symfony Debug Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2020-09-09T05:20:36+00:00" "time": "2020-09-09T05:20:36+00:00"
}, },
{ {
@ -2710,20 +2640,6 @@
"polyfill", "polyfill",
"portable" "portable"
], ],
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2020-07-14T12:35:20+00:00" "time": "2020-07-14T12:35:20+00:00"
}, },
{ {
@ -2790,20 +2706,6 @@
"portable", "portable",
"shim" "shim"
], ],
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2020-07-14T12:35:20+00:00" "time": "2020-07-14T12:35:20+00:00"
}, },
{ {
@ -2854,20 +2756,6 @@
], ],
"description": "Symfony Stopwatch Component", "description": "Symfony Stopwatch Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2020-09-02T16:08:58+00:00" "time": "2020-09-02T16:08:58+00:00"
}, },
{ {
@ -2927,20 +2815,6 @@
], ],
"description": "Symfony Yaml Component", "description": "Symfony Yaml Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2020-09-27T03:36:23+00:00" "time": "2020-09-27T03:36:23+00:00"
}, },
{ {
@ -2981,12 +2855,6 @@
} }
], ],
"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",
"funding": [
{
"url": "https://github.com/theseer",
"type": "github"
}
],
"time": "2020-07-12T23:59:07+00:00" "time": "2020-07-12T23:59:07+00:00"
}, },
{ {
@ -3060,6 +2928,5 @@
"ext-filter": "*", "ext-filter": "*",
"ext-session": "*" "ext-session": "*"
}, },
"platform-dev": [], "platform-dev": []
"plugin-api-version": "1.1.0"
} }

View File

@ -597,17 +597,17 @@
}, },
{ {
"name": "symfony/contracts", "name": "symfony/contracts",
"version": "v1.1.9", "version": "v1.1.10",
"version_normalized": "1.1.9.0", "version_normalized": "1.1.10.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/contracts.git", "url": "https://github.com/symfony/contracts.git",
"reference": "8c4de0cf797f2eba4334a1d7a9b788c1b30a7579" "reference": "011c20407c4b99d454f44021d023fb39ce23b73d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/contracts/zipball/8c4de0cf797f2eba4334a1d7a9b788c1b30a7579", "url": "https://api.github.com/repos/symfony/contracts/zipball/011c20407c4b99d454f44021d023fb39ce23b73d",
"reference": "8c4de0cf797f2eba4334a1d7a9b788c1b30a7579", "reference": "011c20407c4b99d454f44021d023fb39ce23b73d",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -633,7 +633,7 @@
"symfony/service-implementation": "", "symfony/service-implementation": "",
"symfony/translation-implementation": "" "symfony/translation-implementation": ""
}, },
"time": "2020-07-29T14:46:19+00:00", "time": "2020-09-02T16:08:58+00:00",
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {

View File

@ -48,14 +48,14 @@ trait CacheTrait
} }
$item = $pool->getItem($key); $item = $pool->getItem($key);
$recompute = !$item->isHit() || INF === $beta; $recompute = !$item->isHit() || \INF === $beta;
$metadata = $item instanceof ItemInterface ? $item->getMetadata() : []; $metadata = $item instanceof ItemInterface ? $item->getMetadata() : [];
if (!$recompute && $metadata) { if (!$recompute && $metadata) {
$expiry = $metadata[ItemInterface::METADATA_EXPIRY] ?? false; $expiry = $metadata[ItemInterface::METADATA_EXPIRY] ?? false;
$ctime = $metadata[ItemInterface::METADATA_CTIME] ?? false; $ctime = $metadata[ItemInterface::METADATA_CTIME] ?? false;
if ($recompute = $ctime && $expiry && $expiry <= ($now = microtime(true)) - $ctime / 1000 * $beta * log(random_int(1, PHP_INT_MAX) / PHP_INT_MAX)) { if ($recompute = $ctime && $expiry && $expiry <= ($now = microtime(true)) - $ctime / 1000 * $beta * log(random_int(1, \PHP_INT_MAX) / \PHP_INT_MAX)) {
// force applying defaultLifetime to expiry // force applying defaultLifetime to expiry
$item->expiresAt(null); $item->expiresAt(null);
$logger && $logger->info('Item "{key}" elected for early recomputation {delta}s before its expiration', [ $logger && $logger->info('Item "{key}" elected for early recomputation {delta}s before its expiration', [

View File

@ -844,7 +844,7 @@ abstract class HttpClientTestCase extends TestCase
$body = $response->toArray(); $body = $response->toArray();
$this->assertSame('localhost:8057', $body['HTTP_HOST']); $this->assertSame('localhost:8057', $body['HTTP_HOST']);
$this->assertRegexp('#^http://(localhost|127\.0\.0\.1):8057/$#', $body['REQUEST_URI']); $this->assertMatchesRegularExpression('#^http://(localhost|127\.0\.0\.1):8057/$#', $body['REQUEST_URI']);
$response = $client->request('GET', 'http://localhost:8057/', [ $response = $client->request('GET', 'http://localhost:8057/', [
'proxy' => 'http://foo:b%3Dar@localhost:8057', 'proxy' => 'http://foo:b%3Dar@localhost:8057',

View File

@ -105,7 +105,7 @@ class CacheTraitTest extends TestCase
return 'computed data'; return 'computed data';
}; };
$cache->get('key', $callback, INF); $cache->get('key', $callback, \INF);
} }
public function testExceptionOnNegativeBeta() public function testExceptionOnNegativeBeta()

View File

@ -92,8 +92,8 @@ EOF;
} }
} }
} else { } else {
$leftNumber = '-Inf' === $matches['left'] ? -INF : (float) $matches['left']; $leftNumber = '-Inf' === $matches['left'] ? -\INF : (float) $matches['left'];
$rightNumber = is_numeric($matches['right']) ? (float) $matches['right'] : INF; $rightNumber = is_numeric($matches['right']) ? (float) $matches['right'] : \INF;
if (('[' === $matches['left_delimiter'] ? $number >= $leftNumber : $number > $leftNumber) if (('[' === $matches['left_delimiter'] ? $number >= $leftNumber : $number > $leftNumber)
&& (']' === $matches['right_delimiter'] ? $number <= $rightNumber : $number < $rightNumber) && (']' === $matches['right_delimiter'] ? $number <= $rightNumber : $number < $rightNumber)