Update vendor folder
This commit is contained in:
parent
ece6556279
commit
7e6ca66e29
|
|
@ -267,27 +267,27 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "pimple/pimple",
|
"name": "pimple/pimple",
|
||||||
"version": "v3.3.0",
|
"version": "v3.3.1",
|
||||||
"version_normalized": "3.3.0.0",
|
"version_normalized": "3.3.1.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/silexphp/Pimple.git",
|
"url": "https://github.com/silexphp/Pimple.git",
|
||||||
"reference": "e55d12f9d6a0e7f9c85992b73df1267f46279930"
|
"reference": "21e45061c3429b1e06233475cc0e1f6fc774d5b0"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/silexphp/Pimple/zipball/e55d12f9d6a0e7f9c85992b73df1267f46279930",
|
"url": "https://api.github.com/repos/silexphp/Pimple/zipball/21e45061c3429b1e06233475cc0e1f6fc774d5b0",
|
||||||
"reference": "e55d12f9d6a0e7f9c85992b73df1267f46279930",
|
"reference": "21e45061c3429b1e06233475cc0e1f6fc774d5b0",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.2.5",
|
"php": ">=7.2.5",
|
||||||
"psr/container": "^1.0"
|
"psr/container": "^1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"symfony/phpunit-bridge": "^3.4|^4.4|^5.0"
|
"symfony/phpunit-bridge": "^5.0"
|
||||||
},
|
},
|
||||||
"time": "2020-03-03T09:12:48+00:00",
|
"time": "2020-11-24T20:35:42+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
return PhpCsFixer\Config::create()
|
||||||
|
->setRules([
|
||||||
|
'@Symfony' => true,
|
||||||
|
'@Symfony:risky' => true,
|
||||||
|
'@PHPUnit75Migration:risky' => true,
|
||||||
|
'php_unit_dedicate_assert' => true,
|
||||||
|
'array_syntax' => ['syntax' => 'short'],
|
||||||
|
'php_unit_fqcn_annotation' => true,
|
||||||
|
'no_unreachable_default_argument_value' => false,
|
||||||
|
'braces' => ['allow_single_line_closure' => true],
|
||||||
|
'heredoc_to_nowdoc' => false,
|
||||||
|
'ordered_imports' => true,
|
||||||
|
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
|
||||||
|
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'all'],
|
||||||
|
])
|
||||||
|
->setRiskyAllowed(true)
|
||||||
|
->setFinder(PhpCsFixer\Finder::create()->in(__DIR__.'/src'))
|
||||||
|
;
|
||||||
|
|
@ -8,6 +8,7 @@ php:
|
||||||
- 7.2
|
- 7.2
|
||||||
- 7.3
|
- 7.3
|
||||||
- 7.4
|
- 7.4
|
||||||
|
- nightly
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- composer self-update
|
- composer self-update
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,12 @@
|
||||||
Pimple
|
Pimple
|
||||||
======
|
======
|
||||||
|
|
||||||
|
.. caution::
|
||||||
|
|
||||||
|
Pimple is now closed for changes. No new features will be added and no
|
||||||
|
cosmetic changes will be accepted either. The only accepted changes are
|
||||||
|
compatiblity with newer PHP versions and security issue fixes.
|
||||||
|
|
||||||
.. caution::
|
.. caution::
|
||||||
|
|
||||||
This is the documentation for Pimple 3.x. If you are using Pimple 1.x, read
|
This is the documentation for Pimple 3.x. If you are using Pimple 1.x, read
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,11 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.2.5",
|
"php": ">=7.2.5",
|
||||||
"psr/container": "^1.0"
|
"psr/container": "^1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"symfony/phpunit-bridge": "^3.4|^4.4|^5.0"
|
"symfony/phpunit-bridge": "^5.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": { "Pimple": "src/" }
|
"psr-0": { "Pimple": "src/" }
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ class Container implements \ArrayAccess
|
||||||
*/
|
*/
|
||||||
public function factory($callable)
|
public function factory($callable)
|
||||||
{
|
{
|
||||||
if (!\method_exists($callable, '__invoke')) {
|
if (!\is_object($callable) || !\method_exists($callable, '__invoke')) {
|
||||||
throw new ExpectedInvokableException('Service definition is not a Closure or invokable object.');
|
throw new ExpectedInvokableException('Service definition is not a Closure or invokable object.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -184,7 +184,7 @@ class Container implements \ArrayAccess
|
||||||
*/
|
*/
|
||||||
public function protect($callable)
|
public function protect($callable)
|
||||||
{
|
{
|
||||||
if (!\method_exists($callable, '__invoke')) {
|
if (!\is_object($callable) || !\method_exists($callable, '__invoke')) {
|
||||||
throw new ExpectedInvokableException('Callable is not a Closure or invokable object.');
|
throw new ExpectedInvokableException('Callable is not a Closure or invokable object.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue