File tree Expand file tree Collapse file tree 3 files changed +20
-5
lines changed
Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ class BugsnagBundle extends Bundle
1111 *
1212 * @return string
1313 */
14- const VERSION = '1.14.1 ' ;
14+ const VERSION = '1.14.2 ' ;
1515}
Original file line number Diff line number Diff line change 11Changelog
22=========
33
4+ ## 1.14.2 (2024-06-06)
5+
6+ ### Bug Fixes
7+
8+ * Prevent duplicate ` Configuration ` class declaration warnings
9+ [ #178 ] ( https://github.com/bugsnag/bugsnag-symfony/pull/178 )
10+
411## 1.14.1 (2024-01-23)
512
13+ ### Bug Fixes
14+
615* Fix "Configuration class not found" error when using Composer's ` --classmap-authoritative ` option
716 [ #174 ] ( https://github.com/bugsnag/bugsnag-symfony/pull/174 )
817
918## 1.14.0 (2024-01-16)
1019
20+ ### Enhancements
21+
1122* Add support for Symfony 7
1223 [ elliotbruneel] ( https://github.com/elliotbruneel )
1324 [ jdecool] ( https://github.com/jdecool )
Original file line number Diff line number Diff line change 11<?php
22
3- $ class = PHP_MAJOR_VERSION >= 7
4- ? \Bugsnag \BugsnagBundle \DependencyInjection \ConfigurationWithReturnType::class
5- : \Bugsnag \BugsnagBundle \DependencyInjection \ConfigurationWithoutReturnType::class;
3+ // protect against this file being required multiple times, leading to duplicate
4+ // class declaration warnings
5+ if (!class_exists (\Bugsnag \BugsnagBundle \DependencyInjection \Configuration::class, false )) {
6+ $ class = PHP_MAJOR_VERSION >= 7
7+ ? \Bugsnag \BugsnagBundle \DependencyInjection \ConfigurationWithReturnType::class
8+ : \Bugsnag \BugsnagBundle \DependencyInjection \ConfigurationWithoutReturnType::class;
69
7- class_alias ($ class , \Bugsnag \BugsnagBundle \DependencyInjection \Configuration::class);
10+ class_alias ($ class , \Bugsnag \BugsnagBundle \DependencyInjection \Configuration::class);
11+ }
You can’t perform that action at this time.
0 commit comments