Problem/Motivation
PHP Compatibility issue, this test has probably never worked in its current implementation.
FILE: ...b/flysystem/tests/src/Unit/Plugin/FlysystemPluginManagerTest.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
38 | ERROR | Using a call-time pass-by-reference is deprecated since
| | PHP 5.3 and prohibited since PHP 5.4
----------------------------------------------------------------------
Issue fork flysystem-3378461
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:
- 3378461-flysystempluginmanagertest--using
changes, plain diff MR !30
Comments
Comment #4
keshavv commentedI have created the
MR !30.Please review.
Thank you.
Comment #5
roshni27 commentedI have review code. its looks correct.
+1 RTBC
Comment #6
lisa.rae commentedNeeds work, this code change resulted in 2 failing tests.
This test is testing a class method that has variables that are passed by reference (`Drupal\flysystem\Plugin\FlysystemPluginManager::alterDefinitions`). `Drupal\flysystem\FlysystemPluingManager` extends `Drupal\Core\Plugin\DefaultPluginManager` and overrides the `alterDefinitions` method on that class. As extension, this class needs to maintain the API definition of the parent class, which receives parameters passed by reference.
Comment #7
lisa.rae commentedComment #8
lisa.rae commentedClosing as outdated, Flysystem 2.1.0+ is no longer supported, and upgrading to a supported version is recommended.