Skip to content

Commit 138d6c3

Browse files
authored
Release v3.23.1
2 parents 0882407 + cdcb76e commit 138d6c3

67 files changed

Lines changed: 1632 additions & 570 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test-package.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: test
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
php-version: [ 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 ]
12+
guzzle-version: [ '^5.3', '^6.0' ]
13+
include:
14+
- php-version: 7.2
15+
guzzle-version: '^7.0'
16+
- php-version: 7.3
17+
guzzle-version: '^7.0'
18+
- php-version: 7.4
19+
guzzle-version: '^7.0'
20+
- php-version: 8.0
21+
guzzle-version: '^7.0'
22+
composer-flags: '--ignore-platform-reqs'
23+
24+
steps:
25+
- uses: actions/checkout@v2
26+
27+
- name: install PHP
28+
uses: shivammathur/setup-php@v2
29+
with:
30+
php-version: ${{ matrix.php-version }}
31+
32+
- run: composer validate
33+
34+
- name: require guzzle
35+
run: composer require "guzzlehttp/guzzle:${{ matrix.guzzle-version }}" --no-update ${{ matrix.composer-flags }}
36+
37+
- name: install dependencies
38+
run: composer update --prefer-dist --no-progress --no-suggest --no-interaction ${{ matrix.composer-flags }}
39+
40+
- run: composer run-script test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ vendor
33
/composer.lock
44
/composer.phar
55
/.idea
6+
.phpunit.result.cache

.travis.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
Changelog
22
=========
33

4+
## 3.23.1 (2020-10-19)
5+
6+
This release fixes several issues with Bugsnag's error handlers that caused it to affect the behaviour of shutdown functions ([#475](https://github.com/bugsnag/bugsnag-php/issues/475)) and CLI script exit codes ([#523](https://github.com/bugsnag/bugsnag-php/issues/523)). This does not apply if you are using the Laravel or Symfony integrations, as they use separate methods of error handling.
7+
8+
These bugs have been fixed and so registering Bugsnag's error handlers should not cause any change to PHP's default behaviour. Make sure that [PHP's `display_errors` option](https://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors) is disabled in production environments, as exceptions and errors will now go through PHP's default handling.
9+
10+
### Fixes
11+
12+
* The previous error and exception handler will now always be called
13+
14+
* Exceptions raised by the previous exception handler will now be reported
15+
16+
* The default PHP exception handler will now be called, unless this is prevented by a previous exception handler
17+
18+
* Avoid calling `method_exists` on non-objects
19+
[#603](https://github.com/bugsnag/bugsnag-php/pull/603)
20+
21+
### Deprecations
22+
23+
* `Bugsnag\Handler::registerWithPrevious` has been deprecated as calling previous error/exception handlers is now the default behaviour. Calls to `registerWithPrevious` can be safely replaced with `Bugsnag\Handler::register`
24+
425
## 3.23.0 (2020-09-14)
526

627
### Enhancements

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
"guzzlehttp/guzzle": "^5.0|^6.0|^7.0"
1717
},
1818
"require-dev": {
19-
"graham-campbell/testbench-core": "^1.1",
2019
"guzzlehttp/psr7": "^1.3",
21-
"mockery/mockery": "^0.9.4|^1.3.1",
2220
"mtdowling/burgomaster": "dev-master#72151eddf5f0cf101502b94bf5031f9c53501a04",
23-
"phpunit/phpunit": "^4.8.36|^7.5.15",
21+
"phpunit/phpunit": "^4.8.36|^7.5.15|^9.3.10",
2422
"php-mock/php-mock-phpunit": "^1.1|^2.1",
2523
"sebastian/version": ">=1.0.3"
2624
},
@@ -39,6 +37,9 @@
3937
"dev-master": "3.20-dev"
4038
}
4139
},
40+
"scripts": {
41+
"test": "vendor/bin/phpunit"
42+
},
4243
"minimum-stability": "dev",
4344
"prefer-stable": true
4445
}

phpunit.xml.dist

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
beStrictAboutTestsThatDoNotTestAnything="true"
5-
beStrictAboutOutputDuringTests="true"
6-
bootstrap="vendor/autoload.php"
7-
colors="true"
8-
convertErrorsToExceptions="true"
9-
convertNoticesToExceptions="true"
10-
convertWarningsToExceptions="true"
11-
failOnRisky="true"
12-
failOnWarning="true"
13-
processIsolation="false"
14-
stopOnError="false"
15-
stopOnFailure="false"
16-
verbose="true"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
4+
backupGlobals="false"
5+
backupStaticAttributes="false"
6+
beStrictAboutTestsThatDoNotTestAnything="true"
7+
beStrictAboutOutputDuringTests="true"
8+
bootstrap="vendor/autoload.php"
9+
colors="true"
10+
convertErrorsToExceptions="true"
11+
convertNoticesToExceptions="true"
12+
convertWarningsToExceptions="true"
13+
failOnRisky="true"
14+
failOnWarning="true"
15+
processIsolation="false"
16+
stopOnError="false"
17+
stopOnFailure="false"
18+
verbose="true"
1719
>
20+
<coverage processUncoveredFiles="true">
21+
<include>
22+
<directory suffix=".php">./src</directory>
23+
</include>
24+
</coverage>
25+
1826
<testsuites>
1927
<testsuite name="Bugsnag PHP Test Suite">
2028
<directory suffix="Test.php">./tests</directory>
2129
<directory suffix=".phpt">./tests/phpt</directory>
2230
</testsuite>
2331
</testsuites>
24-
<filter>
25-
<whitelist processUncoveredFilesFromWhitelist="true">
26-
<directory suffix=".php">./src</directory>
27-
</whitelist>
28-
</filter>
2932
</phpunit>

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private function syncNotifyEndpointWithGuzzleBaseUri(
201201

202202
$base = $this->getGuzzleBaseUri($guzzle);
203203

204-
if (is_string($base) || method_exists($base, '__toString')) {
204+
if (is_string($base) || (is_object($base) && method_exists($base, '__toString'))) {
205205
$configuration->setNotifyEndpoint((string) $base);
206206
}
207207
}

src/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class Configuration
8282
*/
8383
protected $notifier = [
8484
'name' => 'Bugsnag PHP (Official)',
85-
'version' => '3.23.0',
85+
'version' => '3.23.1',
8686
'url' => 'https://bugsnag.com',
8787
];
8888

0 commit comments

Comments
 (0)