Problem/Motivation
We use error suppression by silencing all array sorts testing \Drupal\Core\Config\Entity\ConfigEntityBase::sort.
The related comments are all similar to
// Suppress errors because of https://bugs.php.net/bug.php?id=50688.
This bug has been fixed in PHP 7.0 upwards, see the last comment on https://bugs.php.net/bug.php?id=50688:
[2017-12-06 18:14 UTC] nikic@php.net
Closing as this is fixed in PHP 7 and PHP 5.6 is out of active support.
Also https://3v4l.org/8NnXd shows the bug only occurring in the PHP range 5.2.11 - 5.2.17, 5.3.1 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Steps to reproduce
Proposed resolution
Remove error suppression.
Use Mocks in SearchPageRepositoryTest
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3386937
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3386937-remove-error-suppression
changes, plain diff MR !4761
Comments
Comment #2
spokjeComment #4
spokjeComment #5
spokjeComment #6
smustgrave commentedApplied MR and searched for https://bugs.php.net/bug.php?id=50688. and all instances appear to be replaced.
Comment #7
catchCommitted/pushed to 11.x and cherry-picked to 10.1.x, thanks!
Comment #10
catch