Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Update StrategyInterface.php #4539
This PR is to implement functionality as detailed in the AbstractHydrator. This should not be a BC break.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
PHP considers optional arguments on an interface a part of the contract -- and thus any implementations need to define the optional argument as well, or else they will break the contract, and PHP will raise an error. As such, it is a BC break.
Just note the optional parameter as an annotation.