Update vendor folder

This commit is contained in:
Frédéric Guillot 2020-12-28 13:27:43 -08:00 committed by fguillot
parent ece6556279
commit 7e6ca66e29
6 changed files with 39 additions and 12 deletions

View File

@ -267,27 +267,27 @@
},
{
"name": "pimple/pimple",
"version": "v3.3.0",
"version_normalized": "3.3.0.0",
"version": "v3.3.1",
"version_normalized": "3.3.1.0",
"source": {
"type": "git",
"url": "https://github.com/silexphp/Pimple.git",
"reference": "e55d12f9d6a0e7f9c85992b73df1267f46279930"
"reference": "21e45061c3429b1e06233475cc0e1f6fc774d5b0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/silexphp/Pimple/zipball/e55d12f9d6a0e7f9c85992b73df1267f46279930",
"reference": "e55d12f9d6a0e7f9c85992b73df1267f46279930",
"url": "https://api.github.com/repos/silexphp/Pimple/zipball/21e45061c3429b1e06233475cc0e1f6fc774d5b0",
"reference": "21e45061c3429b1e06233475cc0e1f6fc774d5b0",
"shasum": ""
},
"require": {
"php": "^7.2.5",
"php": ">=7.2.5",
"psr/container": "^1.0"
},
"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",
"extra": {
"branch-alias": {

20
vendor/pimple/pimple/.php_cs.dist vendored Normal file
View File

@ -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'))
;

View File

@ -8,6 +8,7 @@ php:
- 7.2
- 7.3
- 7.4
- nightly
before_script:
- composer self-update

View File

@ -1,6 +1,12 @@
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::
This is the documentation for Pimple 3.x. If you are using Pimple 1.x, read

View File

@ -12,11 +12,11 @@
}
],
"require": {
"php": "^7.2.5",
"php": ">=7.2.5",
"psr/container": "^1.0"
},
"require-dev": {
"symfony/phpunit-bridge": "^3.4|^4.4|^5.0"
"symfony/phpunit-bridge": "^5.0"
},
"autoload": {
"psr-0": { "Pimple": "src/" }

View File

@ -162,7 +162,7 @@ class Container implements \ArrayAccess
*/
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.');
}
@ -184,7 +184,7 @@ class Container implements \ArrayAccess
*/
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.');
}