Using the file core-module in a BrowserTestBase-PHPUnit tests results with PHP 7.3 in failure like so
There was 1 error:
1) Drupal\Tests\genosharing\Functional\LoadTest::testBasicPages
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
/home/rainer/src/gs/web/core/modules/file/file.module:898
/home/rainer/src/gs/web/core/lib/Drupal/Core/Extension/Extension.php:140
/home/rainer/src/gs/web/core/lib/Drupal/Core/Extension/Extension.php:140
/home/rainer/src/gs/web/core/lib/Drupal/Core/Extension/ModuleHandler.php:128PHP 7.3 has depreciated "continue", see here: https://wiki.php.net/rfc/continue_on_switch_deprecation
Change the "continue" statements in file.module's switch from line 893 to "continue 2" fixes the problem (for PHP 7.3).
Drupal 8.6.1
Apache/2.4.37 (Unix) PHP/7.3.0
Manjaro Linux
[rainer@tuxtop web]$ php -v
PHP 7.3.0 (cli) (built: Dec 8 2018 12:11:20) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
with Xdebug v2.7.0beta1, Copyright (c) 2002-2018, by Derick Rethans| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3025014-5.patch | 1.38 KB | dan2k3k4 |
Comments
Comment #2
fgmThree similar case just in
drush status:Comment #3
dan2k3k4 commentedHere's a quick patch that should fix the file.module
Comment #4
dan2k3k4 commentedFixed the patch paths.
Comment #5
dan2k3k4 commentedOk *this* should be the correct paths for the patch... sorry for spamming :)
Comment #9
baikho commentedThis seems to be a duplicate of PHP 7.3 compatibility which is already committed. Closing accordingly.