File tree 11 files changed +11
-11
lines changed
11 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ licensed under the [MIT license](LICENSE.md).
5
5
6
6
## Installation
7
7
8
- To use the library you need PHP 5.6 and [ Composer] ( https://getcomposer.org/ ) .
8
+ To use the library you need PHP 7.1 and [ Composer] ( https://getcomposer.org/ ) .
9
9
Add the following entry to your ` composer.json ` .
10
10
11
11
``` shell
Original file line number Diff line number Diff line change 21
21
}
22
22
},
23
23
"require" : {
24
- "php" : " >=5.6 "
24
+ "php" : " >=7.1 "
25
25
},
26
26
"require-dev" : {
27
27
"phpunit/phpunit" : " 4.8.*" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ abstract class AbstractConverter implements ConverterInterface
18
18
/**
19
19
* @param ChecksumCalculatorInterface $checksumCalculator
20
20
*/
21
- public function __construct (ChecksumCalculatorInterface $ checksumCalculator = null )
21
+ public function __construct (? ChecksumCalculatorInterface $ checksumCalculator = null )
22
22
{
23
23
$ this ->checksumCalculator = $ checksumCalculator ;
24
24
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class Converter extends AbstractConverter
18
18
/**
19
19
* @param ConverterInterface[][] $converterMap
20
20
*/
21
- public function __construct (array $ converterMap = null )
21
+ public function __construct (? array $ converterMap = null )
22
22
{
23
23
parent ::__construct ();
24
24
Original file line number Diff line number Diff line change 12
12
13
13
class Ean13Converter extends AbstractConverter
14
14
{
15
- public function __construct (ChecksumCalculatorInterface $ checksumCalculator = null )
15
+ public function __construct (? ChecksumCalculatorInterface $ checksumCalculator = null )
16
16
{
17
17
parent ::__construct ($ checksumCalculator ?: new Ean13ChecksumCalculator ());
18
18
}
Original file line number Diff line number Diff line change 11
11
12
12
class Isbn10Converter extends AbstractConverter
13
13
{
14
- public function __construct (ChecksumCalculatorInterface $ checksumCalculator = null )
14
+ public function __construct (? ChecksumCalculatorInterface $ checksumCalculator = null )
15
15
{
16
16
parent ::__construct ($ checksumCalculator ?: new Isbn10ChecksumCalculator ());
17
17
}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ abstract class AbstractParser implements ParserInterface
15
15
/**
16
16
* @param ChecksumCalculatorInterface $checksumCalculator
17
17
*/
18
- public function __construct (ChecksumCalculatorInterface $ checksumCalculator = null )
18
+ public function __construct (? ChecksumCalculatorInterface $ checksumCalculator = null )
19
19
{
20
20
$ this ->checksumCalculator = $ checksumCalculator ;
21
21
}
Original file line number Diff line number Diff line change 8
8
9
9
class Ean13Parser extends AbstractParser
10
10
{
11
- public function __construct (ChecksumCalculatorInterface $ checksumCalculator = null )
11
+ public function __construct (? ChecksumCalculatorInterface $ checksumCalculator = null )
12
12
{
13
13
parent ::__construct ($ checksumCalculator ?: new Ean13ChecksumCalculator ());
14
14
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class Ean8Parser extends AbstractParser
10
10
{
11
11
private static $ ean8ToEan13Prefix = '00000 ' ;
12
12
13
- public function __construct (ChecksumCalculatorInterface $ checksumCalculator = null )
13
+ public function __construct (? ChecksumCalculatorInterface $ checksumCalculator = null )
14
14
{
15
15
parent ::__construct ($ checksumCalculator ?: new Ean13ChecksumCalculator ());
16
16
}
Original file line number Diff line number Diff line change 8
8
9
9
class Isbn10Parser extends AbstractParser
10
10
{
11
- public function __construct (ChecksumCalculatorInterface $ checksumCalculator = null )
11
+ public function __construct (? ChecksumCalculatorInterface $ checksumCalculator = null )
12
12
{
13
13
parent ::__construct ($ checksumCalculator ?: new Isbn10ChecksumCalculator ());
14
14
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Parser implements ParserInterface
14
14
/**
15
15
* @param ParserInterface[] $parsers
16
16
*/
17
- public function __construct (array $ parsers = null )
17
+ public function __construct (? array $ parsers = null )
18
18
{
19
19
$ this ->parsers = $ parsers ?: [
20
20
new Ean8Parser (),
You can’t perform that action at this time.
0 commit comments