| @@ -21,9 +21,9 @@ | ||
| 21 | 21 | * @param HashInterface $hash Hash used to calculate checksum. |
| 22 | 22 | * @param callable $onComplete Optional function invoked when the |
| 23 | 23 | * hash calculation is completed. |
| 24 | 24 | */ |
| 25 | - public function __construct(StreamInterface $stream, HashInterface $hash, callable $onComplete = null) | |
| 25 | + public function __construct(StreamInterface $stream, HashInterface $hash, ?callable $onComplete = null) | |
| 26 | 26 | { |
| 27 | 27 | $this->stream = $stream; |
| 28 | 28 | $this->hash = $hash; |
| 29 | 29 | $this->callback = $onComplete; |