Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Commit ca1374e

Browse files
committed
Typehinting improve
1 parent 06bffde commit ca1374e

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

src/Checker.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,13 @@ class Checker
1515
protected const FILE_REQS = 'composer.lock';
1616
protected const FILE_INSTALLED = 'installed.json';
1717

18-
/**
19-
* @var string
20-
*/
18+
/** @var string */
2119
private $rootDir;
22-
/**
23-
* @var string
24-
*/
20+
21+
/** @var string */
2522
private $vendorDir;
26-
/**
27-
* @var bool Is strictly required `composer.lock` files?
28-
*/
23+
24+
/** @var bool Is strictly required `composer.lock` files? */
2925
private $strictReqs = true;
3026

3127

src/FileReadException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class FileReadException extends RuntimeException
1313
*/
1414
private $requiredfile;
1515

16-
public function __construct(string $requiredfile, $message = '', $code = 0, Throwable $previous = null)
16+
public function __construct(string $requiredfile, string $message = '', int $code = 0, ?Throwable $previous = null)
1717
{
1818
parent::__construct($message, $code, $previous);
1919
$this->requiredfile = $requiredfile;

0 commit comments

Comments
 (0)