8000 Merge branch '3.4' into 4.2 · symfony/symfony@b2eeaea · GitHub
[go: up one dir, main page]

Skip to content

Commit b2eeaea

Browse files
Merge branch '3.4' into 4.2
* 3.4: [FrameworkBundle] minor: fix typo in SessionTest [Debug] workaround BC break in PHP 7.3
2 parents c9ab846 + eb4026b commit b2eeaea

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
@@ -380,6 +380,11 @@ private function reRegister($prev)
380380
*/
381381
public function handleError($type, $message, $file, $line)
382382
{
383+
// @deprecated to be removed in Symfony 5.0
384+
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)) {
385+
$type = E_DEPRECATED;
386+
}
387+
383388
// Level is the current error reporting level to manage silent error.
384389
$level = error_reporting();
385390
$silenced = 0 === ($level & $type);

0 commit comments

Comments
 (0)
0