-
-
Notifications
You must be signed in to change notification settings - Fork 616
Merge original 4.x branch back to 3.x series #1693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Accept multiple path arguments at CLI
| branches: [master] | ||
| branches: | ||
| - master | ||
| - 4.x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding 4.x into the list in current master will minimise the need for differences in our build.yml across branches and therefore future merge conflicts.
| public function __construct( | ||
| $message, | ||
| private $path, | ||
| string|array $paths, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kept as string|array in 3.x for BC, but we can make this just array in 4.x
| * @return string | ||
| * @deprecated | ||
| */ | ||
| public function getPath() | ||
| public function getPath(): string | ||
| { | ||
| return $this->path; | ||
| return implode(', ', $this->paths); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't actually use this getter, but it is part of the public interface and kept for BC. Should be very limited impact to anyone if we remove it in 4.x.
| * Initializes exception. | ||
| * | ||
| * @param string $message | ||
| * @param string $path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should actually be documented as @param string|list<string> $paths to have the precise type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks - fixed.
Brings the history of the old abandoned 4.x branch into the current master, ahead of creating a new 4.x branch. This will avoid us losing the record of these contributions when we restart development for 4.0. There are only very limited changes - there was only one functional PR subsequently implemented by a different contributor in Behat#1611, merged into master and released in 3.23.0. The solutions are essentially identical except for a change to WrongPathsException which I have kept both because it is more correct and in case anyone is already using the 4.x branch.
4907925 to
2b50574
Compare
|
@stof friendly ping - if you're happy with this now I can get a 4.x branch started. |
Brings the history of the old abandoned 4.x branch into the current master, ahead of creating a new 4.x branch. This will avoid us losing the record of these contributions when we restart development for 4.0.
There are only very limited changes - there was only one functional PR #1397 that was merged into 4.x in 2023. The same feature was subsequently implemented by a different contributor in #1611, merged into master and released in 3.23.0.
The solutions are essentially identical except for a change to WrongPathsException which I have kept both because it is more correct and in case anyone is already using the 4.x branch.
Once this PR is merged, I will delete the current 4.x branch and recreate it from master.
Replaces #1692