← All changes
|
src/Framework/FieldsAPI/Exceptions/NameCollisionException.php
+4
-1
4.15.1
→
4.17.0
View file →
| @@ -23,14 +23,17 @@ | ||
| 23 | 23 | * @var Node |
| 24 | 24 | */ |
| 25 | 25 | protected $incomingNode; |
| 26 | 26 | |
| 27 | + /** | |
| 28 | + * @since 4.17.0 Declare the nullable parameter explicitly. | |
| 29 | + */ | |
| 27 | 30 | public function __construct( |
| 28 | 31 | string $name, |
| 29 | 32 | Node $existingNode, |
| 30 | 33 | Node $incomingNode, |
| 31 | 34 | int $code = 0, |
| 32 | - Exception $previous = null | |
| 35 | + ?Exception $previous = null | |
| 33 | 36 | ) |
| 34 | 37 | { |
| 35 | 38 | $this->nodeNameCollision = $name; |
| 36 | 39 | $this->existingNode = $existingNode; |