Skip to content

Commit

Permalink
Merge pull request #102 from sylvainlg/fix/php-8.4-deprecation-for-bi…
Browse files Browse the repository at this point in the history
…naryrenderer

Prevent deprecated (explicit nullable type) notice with PHP 8.4
  • Loading branch information
notFloran authored Dec 20, 2024
2 parents f5cebcc + ad9c26c commit cbc473a
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 cbc473a

Please sign in to comment.