Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
phpunit-diff
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian PHP Team
PEAR
phpunit-diff
Commits
ab83243e
Unverified
Commit
ab83243e
authored
1 year ago
by
Sebastian Bergmann
Browse files
Options
Downloads
Patches
Plain Diff
Do not use implicitly nullable parameters and prepare release
parent
3e3f5024
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog.md
+7
-0
7 additions, 0 deletions
ChangeLog.md
src/Differ.php
+2
-2
2 additions, 2 deletions
src/Differ.php
src/Exception/ConfigurationException.php
+1
-1
1 addition, 1 deletion
src/Exception/ConfigurationException.php
with
10 additions
and
3 deletions
ChangeLog.md
+
7
−
0
View file @
ab83243e
...
...
@@ -2,6 +2,12 @@
All notable changes are documented in this file using the
[
Keep a CHANGELOG
](
http://keepachangelog.com/
)
principles.
## [6.0.1] - 2024-03-02
### Changed
*
Do not use implicitly nullable parameters
## [6.0.0] - 2024-02-02
### Removed
...
...
@@ -133,6 +139,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
*
This component is no longer supported on PHP 5.6
[
6.0.1
]:
https://github.com/sebastianbergmann/diff/compare/6.0.0...6.0.1
[
6.0.0
]:
https://github.com/sebastianbergmann/diff/compare/5.1...6.0.0
[
5.1.0
]:
https://github.com/sebastianbergmann/diff/compare/5.0.3...5.1.0
[
5.0.3
]:
https://github.com/sebastianbergmann/diff/compare/5.0.2...5.0.3
...
...
This diff is collapsed.
Click to expand it.
src/Differ.php
+
2
−
2
View file @
ab83243e
...
...
@@ -42,14 +42,14 @@ final class Differ
$this
->
outputBuilder
=
$outputBuilder
;
}
public
function
diff
(
array
|
string
$from
,
array
|
string
$to
,
LongestCommonSubsequenceCalculator
$lcs
=
null
):
string
public
function
diff
(
array
|
string
$from
,
array
|
string
$to
,
?
LongestCommonSubsequenceCalculator
$lcs
=
null
):
string
{
$diff
=
$this
->
diffToArray
(
$from
,
$to
,
$lcs
);
return
$this
->
outputBuilder
->
getDiff
(
$diff
);
}
public
function
diffToArray
(
array
|
string
$from
,
array
|
string
$to
,
LongestCommonSubsequenceCalculator
$lcs
=
null
):
array
public
function
diffToArray
(
array
|
string
$from
,
array
|
string
$to
,
?
LongestCommonSubsequenceCalculator
$lcs
=
null
):
array
{
if
(
is_string
(
$from
))
{
$from
=
$this
->
splitStringByLines
(
$from
);
...
...
This diff is collapsed.
Click to expand it.
src/Exception/ConfigurationException.php
+
1
−
1
View file @
ab83243e
...
...
@@ -21,7 +21,7 @@ final class ConfigurationException extends InvalidArgumentException
string
$expected
,
$value
,
int
$code
=
0
,
Exception
$previous
=
null
?
Exception
$previous
=
null
)
{
parent
::
__construct
(
sprintf
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment