Created
June 23, 2023 13:51
-
-
Save BackEndTea/79c507f8275cefd0d978d7bd161484d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class WebsiteContext{} | |
class WrongSendMail | |
{ | |
public function __construct(private WebsiteContext $website) {} | |
public function send(int $emailId) {} | |
} | |
class CorrectSendMail | |
{ | |
public function send(int $emailId, WebsiteContext $website) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment