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 d9bcfc3

Browse filesBrowse files
bug #31174 Treat undefined env var as strict mode (greg0ire)
This PR was merged into the 4.3-dev branch. Discussion ---------- Treat undefined env var as strict mode | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a 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 . Commits ------- 6c3c199 Treat undefined env var as strict mode
2 parents 89ec311 + 6c3c199 commit d9bcfc3
Copy full SHA for d9bcfc3

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.