Skip to content

Commit

Permalink
Prevent deprecated (explicit nullable type) notice with PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainlg authored Dec 20, 2024
1 parent f5cebcc commit ad9c26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Renderer/BinaryRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final class BinaryRenderer implements RendererInterface
*/
private $node;

public function __construct(string $bin, bool $minify, string $validationLevel, string $node = null, int $mjmlVersion = null)
public function __construct(string $bin, bool $minify, string $validationLevel, ?string $node = null, ?int $mjmlVersion = null)
{
$this->bin = $bin;
$this->minify = $minify;
Expand Down

0 comments on commit ad9c26c

Please sign in to comment.