Skip to content

Commit 1db3e53

Browse files
author
Tomáš Votruba
authored
Merge pull request #48 from litvinchuk/patch-2
Pass $name and $email to parent constructor in EmployeeTaxData
2 parents bfce179 + a77a62d commit 1db3e53

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,8 +1570,8 @@ class Employee {
15701570
class EmployeeTaxData extends Employee {
15711571
private $ssn, $salary;
15721572

1573-
public function __construct($ssn, $salary) {
1574-
parent::__construct();
1573+
public function __construct($name, $email, $ssn, $salary) {
1574+
parent::__construct($name, $email);
15751575
$this->ssn = $ssn;
15761576
$this->salary = $salary;
15771577
}

0 commit comments

Comments
 (0)