Skip to content

Commit c3cfa07

Browse files
Justinas-JurciukonisJustinas Jurčiukonis
andauthored
Fix implicitly marking parameters as nullable (#178)
Co-authored-by: Justinas Jurčiukonis <[email protected]>
1 parent e282672 commit c3cfa07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/NetSuiteClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function validateConfig(array $config)
174174
*/
175175
public static function createFromEnv(
176176
array $options = [],
177-
\SoapClient $client = null
177+
?\SoapClient $client = null
178178
) {
179179
$config = self::getEnvConfig();
180180

src/includes/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function array_is_associative($array)
3333

3434
namespace {
3535

36-
function setFields($object, array $fieldArray=null)
36+
function setFields($object, ?array $fieldArray=null): void
3737
{
3838
// helper method that allows creating objects and setting their properties based on an associative array passed as argument. Mimics functionality from PHP toolkit
3939
$classname = get_class($object);

0 commit comments

Comments
 (0)