Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
5fcd5e1c
Commit
5fcd5e1c
authored
Feb 18, 2021
by
Eloy Lafuente
Browse files
MDL-71036 phpunit: Stricter signature matching
parent
10c2aa71
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/phpunit/classes/constraint_object_is_equal_with_exceptions.php
View file @
5fcd5e1c
...
...
@@ -86,7 +86,7 @@ class phpunit_constraint_object_is_equal_with_exceptions extends PHPUnit\Framewo
* @return mixed
* @throws PHPUnit\Framework\ExpectationFailedException
*/
public
function
evaluate
(
$other
,
$description
=
''
,
$shouldreturnesult
=
false
)
{
public
function
evaluate
(
$other
,
string
$description
=
''
,
bool
$shouldreturnesult
=
false
)
:
?bool
{
foreach
(
$this
->
keys
as
$key
=>
$comparison
)
{
if
(
isset
(
$other
->
$key
)
||
isset
(
$this
->
capturedvalue
->
$key
))
{
// One of the keys is present, therefore run the comparison.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment