diff --git a/src/PaygTax.php b/src/PaygTax.php index ead0159..8e0b1c7 100644 --- a/src/PaygTax.php +++ b/src/PaygTax.php @@ -26,7 +26,7 @@ class PaygTax protected Earning $earning; - final public function __construct(Classifier $classifier = null) + final public function __construct(?Classifier $classifier = null) { $this->classifier = $classifier ?? new BaseClassifier(); } @@ -36,7 +36,7 @@ final public function __construct(Classifier $classifier = null) * * @return static */ - public static function new(Classifier $classifier = null) + public static function new(?Classifier $classifier = null) { return new static($classifier); }