Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6c3c199

Browse filesBrowse files
committed
Treat undefined env var as strict mode
An undefined SYMFONY_DEPRECATION_HELPER environment variable translates to false, and that was previously interpreted as 0, which means strict mode. This restores backwards compatibility with the previous behavior, which got broken in 1c73f9c .
1 parent 89ec311 commit 6c3c199
Copy full SHA for 6c3c199

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ private function getConfiguration()
241241
return $this->configuration = Configuration::fromNumber($mode);
242242
}
243243

244+
if (!$mode) {
245+
return $this->configuration = Configuration::fromNumber(0);
246+
}
247+
244248
return $this->configuration = Configuration::fromUrlEncodedString((string) $mode);
245249
}
246250

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.