Skip to content

Commit e201127

Browse files
authored
Declare strict (#286)
* Declare strict * Declare strict and loosend params for MslsJson
1 parent 002f29d commit e201127

8 files changed

+10
-10
lines changed

includes/MslsJson.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ class MslsJson {
2323
/** MslsLanguageArray
2424
* Adds a value label pair to the internal class container
2525
*
26-
* @param ?int $value
27-
* @param string $label
26+
* @param mixed $value
27+
* @param mixed $label
2828
*
2929
* @return MslsJson
3030
*/
31-
public function add( ?int $value, string $label ) {
31+
public function add( $value, $label ) {
3232
$this->arr[] = [
3333
'value' => intval( $value ),
3434
'label' => strval( $label ),

tests/TestMslsCustomFilter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare( strict_types=1 );
22

33
namespace lloc\MslsTests;
44

tests/TestMslsGetSet.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare( strict_types=1 );
22

33
namespace lloc\MslsTests;
44

tests/TestMslsJson.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare( strict_types=1 );
22

33
namespace lloc\MslsTests;
44

tests/TestMslsLanguageArray.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare( strict_types=1 );
22

33
namespace lloc\MslsTests;
44

tests/TestMslsLink.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare( strict_types=1 );
22

33
namespace lloc\MslsTests;
44

tests/TestMslsLinkImageOnly.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare( strict_types=1 );
22

33
namespace lloc\MslsTests;
44

tests/TestMslsLinkTextImage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare( strict_types=1 );
22

33
namespace lloc\MslsTests;
44

0 commit comments

Comments
 (0)