Skip to content

Commit 2deefbe

Browse files
All previously non-final non-exception classes have been marked as soft-final
1 parent 4af30ee commit 2deefbe

File tree

6 files changed

+14
-0
lines changed

6 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
## 2.0.0 - TBC
55

6+
### Changed
7+
8+
- All previously non-final non-exception classes have been marked as soft-final
9+
610
### Removed
711

812
- Removed deprecated global functions

src/EachPromise.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
/**
88
* Represents a promise that iterates over many promises and invokes
99
* side-effect functions in the process.
10+
*
11+
* @final
1012
*/
1113
class EachPromise implements PromisorInterface
1214
{

src/FulfilledPromise.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*
1010
* Thenning off of this promise will invoke the onFulfilled callback
1111
* immediately and ignore other callbacks.
12+
*
13+
* @final
1214
*/
1315
class FulfilledPromise implements PromiseInterface
1416
{

src/Promise.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Promises/A+ implementation that avoids recursion when possible.
99
*
1010
* @see https://promisesaplus.com/
11+
*
12+
* @final
1113
*/
1214
class Promise implements PromiseInterface
1315
{

src/RejectedPromise.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*
1010
* Thenning off of this promise will invoke the onRejected callback
1111
* immediately and ignore other callbacks.
12+
*
13+
* @final
1214
*/
1315
class RejectedPromise implements PromiseInterface
1416
{

src/TaskQueue.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* by calling the `run()` function of the global task queue in an event loop.
1313
*
1414
* GuzzleHttp\Promise\Utils::queue()->run();
15+
*
16+
* @final
1517
*/
1618
class TaskQueue implements TaskQueueInterface
1719
{

0 commit comments

Comments
 (0)