Skip to content

Commit ee1bd4f

Browse files
authored
Merge pull request #40 from dotkernel/issue-39
Issue #39: Added support for `laminas/laminas-servicemanager:4.x`
2 parents 0c46abe + d78e946 commit ee1bd4f

File tree

10 files changed

+31
-14
lines changed

10 files changed

+31
-14
lines changed

.laminas-ci.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"ignore_php_platform_requirements": {
3+
"8.4": true
4+
},
5+
"backwardCompatibilityCheck": true
6+
}

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
# dot-errorhandler
22

3-
Error Logging Handler for DotKernel
3+
Error Logging Handler for Dotkernel
44

55
![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-errorhandler)
6-
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-errorhandler/4.0.0)
6+
![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-errorhandler/4.1.0)
77

88
[![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-errorhandler)](https://github.com/dotkernel/dot-errorhandler/issues)
99
[![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-errorhandler)](https://github.com/dotkernel/dot-errorhandler/network)
1010
[![GitHub stars](https://img.shields.io/github/stars/dotkernel/dot-errorhandler)](https://github.com/dotkernel/dot-errorhandler/stargazers)
11-
[![GitHub license](https://img.shields.io/github/license/dotkernel/dot-errorhandler)](https://github.com/dotkernel/dot-errorhandler/blob/3.0/LICENSE)
11+
[![GitHub license](https://img.shields.io/github/license/dotkernel/dot-errorhandler)](https://github.com/dotkernel/dot-errorhandler/blob/4.0/LICENSE)
1212

1313
[![Build Static](https://github.com/dotkernel/dot-errorhandler/actions/workflows/continuous-integration.yml/badge.svg?branch=4.0)](https://github.com/dotkernel/dot-errorhandler/actions/workflows/continuous-integration.yml)
1414
[![codecov](https://codecov.io/gh/dotkernel/dot-errorhandler/branch/4.0/graph/badge.svg?token=0KIJARS5RS)](https://codecov.io/gh/dotkernel/dot-errorhandler)
1515

16-
[![SymfonyInsight](https://insight.symfony.com/projects/cf1f8d89-f230-4157-bc8b-7cce20c75454/big.svg)](https://insight.symfony.com/projects/cf1f8d89-f230-4157-bc8b-7cce20c75454)
17-
1816
## Adding the error handler
1917

2018
- Add the composer package:

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@
2626
}
2727
},
2828
"require": {
29-
"php": "~8.2.0 || ~8.3.0",
30-
"dotkernel/dot-log": "^4.0.2",
29+
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
30+
"dotkernel/dot-log": "^4.1.0",
3131
"laminas/laminas-diactoros": "^3.3",
3232
"laminas/laminas-stratigility": "^3.11",
3333
"mezzio/mezzio": "^3.19",
3434
"psr/http-message": "^1.0 || ^2.0",
3535
"psr/http-server-middleware": "^1.0"
3636
},
3737
"require-dev": {
38-
"laminas/laminas-coding-standard": "^2.5",
38+
"laminas/laminas-coding-standard": "^3.0",
3939
"mikey179/vfsstream": "^1.6.7",
4040
"phpunit/phpunit": "^10.5",
4141
"vimeo/psalm": "^5.22"
@@ -54,7 +54,8 @@
5454
"scripts": {
5555
"check": [
5656
"@cs-check",
57-
"@test"
57+
"@test",
58+
"@static-analysis"
5859
],
5960
"cs-check": "phpcs",
6061
"cs-fix": "phpcbf",

docs/book/index.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/book/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../README.md

docs/book/v3/installation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
Install `dotkernel/dot-errorhandler` by executing the following Composer command:
44

5-
composer require dotkernel/dot-errorhandler
5+
```shell
6+
composer require dotkernel/dot-errorhandler
7+
```

docs/book/v3/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Overview
22

3-
`dot-errorhandler` is DotKernel's logging error handler, providing two options:
3+
`dot-errorhandler` is Dotkernel's logging error handler, providing two options:
44

55
- `Dot\ErrorHandler\ErrorHandler`, same as the Zend Expressive error handling class with the only difference being the removal of the `final` statement for making extension possible
66
- `Dot\ErrorHandler\LogErrorHandler` adds logging support to the default `ErrorHandler` class

docs/book/v4/installation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
Install `dotkernel/dot-errorhandler` by executing the following Composer command:
44

5-
composer require dotkernel/dot-errorhandler
5+
```shell
6+
composer require dotkernel/dot-errorhandler
7+
```

docs/book/v4/overview.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Overview
22

3-
`dot-errorhandler` is DotKernel's logging error handler, providing two options:
3+
`dot-errorhandler` is Dotkernel's logging error handler, providing two options:
44

55
- `Dot\ErrorHandler\ErrorHandler`, same as the Zend Expressive error handling class with the only difference being the removal of the `final` statement for making extension possible
66
- `Dot\ErrorHandler\LogErrorHandler` adds logging support to the default `ErrorHandler` class
7+
8+
> Versions **>=4.0.0** and **<4.1.0** use laminas/laminas-servicemanager **3.x**
9+
10+
> Versions **>=4.1.0** use laminas/laminas-servicemanager **4.x**

test/ErrorHandlerFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testWillCreateWithErrorResponseGenerator(): void
5757
{
5858
$this->container->method('has')
5959
->with(ErrorResponseGenerator::class)
60-
->willReturn($this->createMock(ErrorResponseGenerator::class));
60+
->willReturn(true);
6161

6262
$this->container->method('get')
6363
->willReturnMap([

0 commit comments

Comments
 (0)