Skip to content

Commit f3da228

Browse files
authored
Release v1.14.2
2 parents 9e25f53 + d6aa51c commit f3da228

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

BugsnagBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
Changelog
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)

create-configuration-class-alias.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
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+
}

0 commit comments

Comments
 (0)