-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Remove HHVM support (second edition) #23216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,6 @@ public function read($path, $locale) | |
// Never enable fallback. We want to know if a bundle cannot be found | ||
$bundle = new \ResourceBundle($locale, $path, false); | ||
} catch (\Exception $e) { | ||
// HHVM compatibility: constructor throws on invalid resource | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't the try/catch be removed then? (same below) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a config in Intl, that translate errors into exceptions. Before removing the try-catch, this has to be tested with that intl config There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PHP actually throws an exception. That's why I didn't remove it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PHP 7.0 and above throws an exception without that config. That's true. |
||
$bundle = null; | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,6 @@ public function load($resource, $locale, $domain = 'messages') | |
try { | ||
$rb = new \ResourceBundle($locale, $resource); | ||
} catch (\Exception $e) { | ||
// HHVM compatibility: constructor throws on invalid resource | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See my comment for |
||
$rb = null; | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,6 @@ public function load($resource, $locale, $domain = 'messages') | |
try { | ||
$rb = new \ResourceBundle($locale, $resource); | ||
} catch (\Exception $e) { | ||
// HHVM compatibility: constructor throws on invalid resource | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See my comment for IntlBundleReader.php There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You mean this one? #23216 (comment) I answered. |
||
$rb = null; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are a few more HHVM cases below this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't removed them because the code is pretty much tricky and I'm not sure what it's used for so I didn't remove anything. ^^'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍