File tree 3 files changed +20
-5
lines changed
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
11
11
*
12
12
* @return string
13
13
*/
14
- const VERSION = '1.14.1 ' ;
14
+ const VERSION = '1.14.2 ' ;
15
15
}
Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
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
+
4
11
## 1.14.1 (2024-01-23)
5
12
13
+ ### Bug Fixes
14
+
6
15
* Fix "Configuration class not found" error when using Composer's ` --classmap-authoritative ` option
7
16
[ #174 ] ( https://github.com/bugsnag/bugsnag-symfony/pull/174 )
8
17
9
18
## 1.14.0 (2024-01-16)
10
19
20
+ ### Enhancements
21
+
11
22
* Add support for Symfony 7
12
23
[ elliotbruneel] ( https://github.com/elliotbruneel )
13
24
[ jdecool] ( https://github.com/jdecool )
Original file line number Diff line number Diff line change 1
1
<?php
2
2
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;
6
9
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