Skip to content

Commit c884eb6

Browse files
committed
fix explitic nullable issues
1 parent 5388a1a commit c884eb6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Knp/Snappy/AbstractGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ abstract class AbstractGenerator implements GeneratorInterface, LoggerAwareInter
6565
* @param array $options
6666
* @param null|array $env
6767
*/
68-
public function __construct($binary, array $options = [], array $env = null)
68+
public function __construct($binary, array $options = [], ?array $env = null)
6969
{
7070
$this->configure();
7171

src/Knp/Snappy/Image.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Image extends AbstractGenerator
1313
/**
1414
* {@inheritdoc}
1515
*/
16-
public function __construct($binary = null, array $options = [], array $env = null)
16+
public function __construct($binary = null, array $options = [], ?array $env = null)
1717
{
1818
$this->setDefaultExtension('jpg');
1919

src/Knp/Snappy/Pdf.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Pdf extends AbstractGenerator
1818
/**
1919
* {@inheritdoc}
2020
*/
21-
public function __construct($binary = null, array $options = [], array $env = null)
21+
public function __construct($binary = null, array $options = [], ?array $env = null)
2222
{
2323
$this->setDefaultExtension('pdf');
2424
$this->setOptionsWithContentCheck();

0 commit comments

Comments
 (0)