Skip to content

Commit

Permalink
Make implicit nullable types explicit (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas authored Mar 21, 2024
1 parent 95895d2 commit 4f29306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Internal/HPackNative.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ public function setTableSizeLimit(int $maxSize) /* : void */
* Resizes the table to the given size, removing old entries as per section 4.4 if necessary.
*
*/
public function resizeTable(int $size = null) /* : void */
public function resizeTable(?int $size = null) /* : void */
{
if ($size !== null) {
$this->currentMaxSize = \max(0, \min($size, $this->hardMaxSize));
Expand Down

0 comments on commit 4f29306

Please sign in to comment.