Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
php-http-httplug
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian PHP Team
PEAR
php-http-httplug
Commits
afa63614
Commit
afa63614
authored
3 years ago
by
David Prévot
Browse files
Options
Downloads
Plain Diff
New upstream version 2.3.0
parents
36ff4a7c
f640739f
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.php-cs-fixer.dist.php
+16
-0
16 additions, 0 deletions
.php-cs-fixer.dist.php
CHANGELOG.md
+7
-0
7 additions, 0 deletions
CHANGELOG.md
README.md
+1
-2
1 addition, 2 deletions
README.md
src/Promise/HttpRejectedPromise.php
+6
-1
6 additions, 1 deletion
src/Promise/HttpRejectedPromise.php
with
30 additions
and
3 deletions
.php-cs-fixer.dist.php
0 → 100644
+
16
−
0
View file @
afa63614
<?php
$finder
=
PhpCsFixer\Finder
::
create
()
->
in
(
__DIR__
.
'/src'
)
->
name
(
'*.php'
)
;
$config
=
(
new
PhpCsFixer\Config
())
->
setRiskyAllowed
(
true
)
->
setRules
([
'@Symfony'
=>
true
,
])
->
setFinder
(
$finder
)
;
return
$config
;
This diff is collapsed.
Click to expand it.
CHANGELOG.md
+
7
−
0
View file @
afa63614
...
...
@@ -9,6 +9,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
## [2.3.0] - 2022-02-21
### Changed
-
Enabled the
`$onRejected`
callback of
`HttpRejectedPromise`
to return a promise for implementing a retry
mechanism
[
#168
](
https://github.com/php-http/httplug/pull/168
)
## [2.2.0] - 2020-07-13
### Changed
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
2
View file @
afa63614
...
...
@@ -2,12 +2,11 @@
[

](https://github.com/php-http/httplug/releases)
[

](LICENSE)
[

](https://travis-ci.org/php-http/httplug
)
[

](https://github.com/php-http/httplug/actions/workflows/ci.yml
)
[

](https://scrutinizer-ci.com/g/php-http/httplug)
[

](https://scrutinizer-ci.com/g/php-http/httplug)
[

](https://packagist.org/packages/php-http/httplug)
[

](http://slack.httplug.io)
[

](mailto:team@httplug.io)
**HTTPlug, the HTTP client abstraction for PHP.**
...
...
This diff is collapsed.
Click to expand it.
src/Promise/HttpRejectedPromise.php
+
6
−
1
View file @
afa63614
...
...
@@ -27,7 +27,12 @@ final class HttpRejectedPromise implements Promise
}
try
{
return
new
HttpFulfilledPromise
(
$onRejected
(
$this
->
exception
));
$result
=
$onRejected
(
$this
->
exception
);
if
(
$result
instanceof
Promise
)
{
return
$result
;
}
return
new
HttpFulfilledPromise
(
$result
);
}
catch
(
Exception
$e
)
{
return
new
self
(
$e
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment