Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d31b716

Browse files
Merge branch '4.3' into 4.4
* 4.3: [FrameworkBundle] minor: fix typo in SessionTest [Debug] workaround BC break in PHP 7.3
2 parents b88f950 + 2fa5298 commit d31b716

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Functional/SessionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function testFlash($config, $insulate)
7171

7272
/**
7373
* See if two separate insulated clients can run without
74-
* polluting eachother's session data.
74+
* polluting each other's session data.
7575
*
7676
* @dataProvider getConfigs
7777
*/

src/Symfony/Component/Debug/ErrorHandler.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,11 @@ private function reRegister($prev)
382382
*/
383383
public function handleError($type, $message, $file, $line)
384384
{
385+
// @deprecated to be removed in Symfony 5.0
386+
if (\PHP_VERSION_ID >= 70300 && $message && '"' === $message[0] && 0 === strpos($message, '"continue') && preg_match('/^"continue(?: \d++)?" targeting switch is equivalent to "break(?: \d++)?"\. Did you mean to use "continue(?: \d++)?"\?$/', $message)) {
387+
$type = E_DEPRECATED;
388+
}
389+
385390
// Level is the current error reporting level to manage silent error.
386391
$level = error_reporting();
387392
$silenced = 0 === ($level & $type);

0 commit comments

Comments
 (0)