| @@ -17,13 +17,14 @@ | ||
| 17 | 17 | use Concerns\SerializeAsJson; |
| 18 | 18 | use Concerns\TapNode; |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | - * @since 2.12.0 | |
| 21 | + * @since 2.12.0 | |
| 22 | + * @since 2.23.1 Make constructor final to avoid unsafe usage of `new static()`. | |
| 22 | 23 | * |
| 23 | 24 | * @param string $name |
| 24 | 25 | */ |
| 25 | - public function __construct($name) | |
| 26 | + final public function __construct($name) | |
| 26 | 27 | { |
| 27 | 28 | $this->name = $name; |
| 28 | 29 | } |
| 29 | 30 | |