Skip to content

Commit

Permalink
Allow classifier to be null, default to base classifier
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Dec 9, 2024
1 parent f7ddb0c commit b572706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PaygTax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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);
}
Expand Down

0 comments on commit b572706

Please sign in to comment.