Skip to content

Commit a6ff91a

Browse files
authored
Merge pull request #588 from mimmi20/updates
upgrade to PHP 8.3
2 parents 394ecf1 + 697b021 commit a6ff91a

File tree

232 files changed

+695
-548
lines changed

Some content is hidden

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

232 files changed

+695
-548
lines changed

.codeclimate.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ checks:
99
method-complexity:
1010
enabled: false
1111
method-count:
12-
enabled: true
12+
enabled: false
1313
method-lines:
1414
enabled: false
1515
nested-control-flow:

.github/dependabot.yml

-53
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,6 @@ updates:
1515
time: "04:00"
1616
timezone: "Europe/Berlin"
1717

18-
groups:
19-
security-updates:
20-
applies-to: "security-updates"
21-
patterns:
22-
- "*"
23-
exclude-patterns:
24-
- "friendsofphp/php-cs-fixer"
25-
- "sirbrillig/phpcs-variable-analysis"
26-
- "slevomat/coding-standard"
27-
- "squizlabs/php_codesniffer"
28-
version-updates:
29-
applies-to: "version-updates"
30-
patterns:
31-
- "*"
32-
exclude-patterns:
33-
- "friendsofphp/php-cs-fixer"
34-
- "sirbrillig/phpcs-variable-analysis"
35-
- "slevomat/coding-standard"
36-
- "squizlabs/php_codesniffer"
37-
3818
open-pull-requests-limit: 10
3919

4020
reviewers:
@@ -55,30 +35,9 @@ updates:
5535
prefix: "composer"
5636

5737
ignore:
58-
- dependency-name: "browscap/browscap"
5938
- dependency-name: "elasticsearch/elasticsearch"
60-
- dependency-name: "endorphin-studio/browser-detector-tests"
61-
- dependency-name: "illuminate/config"
62-
- dependency-name: "illuminate/container"
63-
- dependency-name: "illuminate/contracts"
64-
- dependency-name: "illuminate/events"
65-
- dependency-name: "illuminate/filesystem"
66-
- dependency-name: "illuminate/view"
67-
- dependency-name: "infection/infection"
68-
- dependency-name: "laminas/laminas-diactoros"
69-
- dependency-name: "laminas/laminas-servicemanager"
70-
- dependency-name: "nikic/php-parser"
71-
- dependency-name: "phpunit/phpunit"
7239
- dependency-name: "predis/predis"
7340
- dependency-name: "psr/container"
74-
- dependency-name: "psr/http-message"
75-
- dependency-name: "psr/log"
76-
- dependency-name: "psr/simple-cache"
77-
- dependency-name: "symfony/console"
78-
- dependency-name: "symfony/filesystem"
79-
- dependency-name: "symfony/finder"
80-
- dependency-name: "symfony/http-foundation"
81-
- dependency-name: "symfony/yaml"
8241

8342
# Disable rebasing for all pull requests
8443
rebase-strategy: "disabled"
@@ -93,18 +52,6 @@ updates:
9352
time: "04:00"
9453
timezone: "Europe/Berlin"
9554

96-
groups:
97-
# Specify a name for the group, which will be used in pull request titles
98-
# and branch names
99-
security-updates:
100-
applies-to: "security-updates"
101-
patterns:
102-
- "*"
103-
version-updates:
104-
applies-to: "version-updates"
105-
patterns:
106-
- "*"
107-
10855
open-pull-requests-limit: 10
10956

11057
reviewers:

.github/workflows/continuous-integration.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
validate:
2020
name: "Validate Project"
2121

22-
uses: "mimmi20/ci/.github/workflows/validate.yml@8.1"
22+
uses: "mimmi20/ci/.github/workflows/validate.yml@8.3"
2323
with:
2424
extensions: "amqp, ctype, curl, dom, iconv, intl, mbstring, openssl, simplexml, sockets, tokenizer, xml, xmlwriter"
2525
ini-values: "opcache.enable=1, opcache.fast_shutdown=0, zend.assertions=1, assert.exception=On, intl.default_locale=de, intl.use_exceptions=1, zend.exception_ignore_args=0"
@@ -48,7 +48,7 @@ jobs:
4848

4949
needs: "install"
5050

51-
uses: "mimmi20/ci/.github/workflows/analytics.yml@8.1"
51+
uses: "mimmi20/ci/.github/workflows/analytics.yml@8.3"
5252
with:
5353
extensions: "amqp, ctype, curl, dom, iconv, intl, mbstring, openssl, simplexml, sockets, tokenizer, xml, xmlwriter"
5454
ini-values: "opcache.enable=1, opcache.fast_shutdown=0, zend.assertions=1, assert.exception=On, intl.default_locale=de, intl.use_exceptions=1, zend.exception_ignore_args=0"
@@ -57,7 +57,7 @@ jobs:
5757
skip-phpcs: false
5858
skip-phpstan: false
5959
skip-rector: false
60-
skip-phpmd: false
60+
skip-phpmd: true
6161
skip-eslint: true
6262
skip-stylelint: true
6363
skip-prettier: true

.github/workflows/install.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
runs-on: "${{ matrix.operating-system }}"
2424
timeout-minutes: 10
25-
continue-on-error: ${{ '8.4' == matrix.php-version }}
25+
continue-on-error: ${{ '8.4' == matrix.php-version || '8.5' == matrix.php-version }}
2626

2727
strategy:
2828
fail-fast: false
@@ -32,8 +32,6 @@ jobs:
3232
- "ubuntu-24.04"
3333

3434
php-version:
35-
- "8.1"
36-
- "8.2"
3735
- "8.3"
3836
- "8.4"
3937
- "8.5"

.github/workflows/test.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ jobs:
8686
- "ubuntu-24.04"
8787

8888
php-version:
89-
- "8.1"
90-
- "8.2"
9189
- "8.3"
90+
- "8.4"
9291

9392
dependencies:
9493
- "lowest"
@@ -200,7 +199,7 @@ jobs:
200199
- "ubuntu-24.04"
201200

202201
php-version:
203-
- "8.1"
202+
- "8.3"
204203

205204
dependencies:
206205
- "lowest"

.php-cs-fixer.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of the mimmi20/monolog-factory package.
45
*
@@ -10,10 +11,12 @@
1011

1112
declare(strict_types = 1);
1213

13-
$header = <<<'EOF'
14+
$year = date('Y');
15+
16+
$header = <<<EOF
1417
This file is part of the mimmi20/monolog-factory package.
1518
16-
Copyright (c) 2022-2024, Thomas Mueller <[email protected]>
19+
Copyright (c) 2022-{$year}, Thomas Mueller <[email protected]>
1720
1821
For the full copyright and license information, please view the LICENSE
1922
file that was distributed with this source code.

composer.json

+9-10
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"source": "https://github.com/mimmi20/monolog-factory"
1717
},
1818
"require": {
19-
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
19+
"php": "~8.3.0 || ~8.4.0 || ~8.5.0",
2020
"ext-mbstring": "*",
2121
"monolog/monolog": "^3.8.1",
2222
"psr/container": "^1.1.2 || ^2.0.2",
@@ -37,30 +37,29 @@
3737
"graylog2/gelf-php": "^2.0.1",
3838
"guzzlehttp/guzzle": "^7.9.2",
3939
"guzzlehttp/psr7": "^2.7.0",
40-
"infection/infection": "^0.27.11 || ^0.28.1 || ^0.29.8",
40+
"infection/infection": "^0.29.8",
4141
"jk/monolog-request-header-processor": "^1.0.0",
42-
"laminas/laminas-config": "^3.10.1",
4342
"laminas/laminas-eventmanager": "^3.14.0",
4443
"laminas/laminas-modulemanager": "^2.17.0",
45-
"laminas/laminas-servicemanager": "^3.22.1 || ^4.0.0",
44+
"laminas/laminas-servicemanager": "^3.22.1",
4645
"mikey179/vfsstream": "^1.6.12",
47-
"mimmi20/coding-standard": "^5.2.44",
46+
"mimmi20/coding-standard": "^6.0.1",
4847
"mimmi20/monolog-callbackfilterhandler": "^3.0.7",
4948
"mimmi20/monolog-streamformatter": "^3.1.4",
50-
"nikic/php-parser": "^4.19.1 || ^5.0.2",
49+
"nikic/php-parser": "^5.3.1",
5150
"php-console/php-console": "^3.1.8",
5251
"phpstan/extension-installer": "^1.4.3",
5352
"phpstan/phpstan": "^1.12.8",
5453
"phpstan/phpstan-deprecation-rules": "^1.2.1",
5554
"phpstan/phpstan-phpunit": "^1.4.0",
56-
"phpunit/phpunit": "^10.5.25",
55+
"phpunit/phpunit": "^11.4.4",
5756
"predis/predis": "^1.1.10 || ^2.1.2",
5857
"rector/rector": "^1.2.10",
5958
"rector/type-perfect": "^1.0.0",
6059
"ruflin/elastica": "^8.1.0",
61-
"symfony/mailer": "^6.4.13",
62-
"symfony/mime": "^6.4.13",
63-
"symfony/process": "^6.4.15",
60+
"symfony/mailer": "^7.2.0",
61+
"symfony/mime": "^7.2.0",
62+
"symfony/process": "^7.2.0",
6463
"symplify/phpstan-rules": "^13.0.1",
6564
"tomasvotruba/cognitive-complexity": "^0.2.3",
6665
"tomasvotruba/type-coverage": "^1.0.0",

phpmd.ruleset.xml

-36
This file was deleted.

phpstan.neon

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
parameters:
22
level: 8
33

4-
phpVersion: 80100 # PHP 8.1
4+
phpVersion: 80300 # PHP 8.3
55

66
parallel:
77
maximumNumberOfProcesses: 1
@@ -104,7 +104,7 @@ parameters:
104104
return_type: 99.9
105105
param_type: 92.3
106106
property_type: 100
107-
constant_type: 0
107+
constant_type: 100
108108
# also, how many files has declare strict types
109109
declare: 100
110110

phpunit.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
beStrictAboutCoverageMetadata="false"
1010
beStrictAboutOutputDuringTests="true"
1111
beStrictAboutTestsThatDoNotTestAnything="true"
12+
displayDetailsOnPhpunitDeprecations="true"
1213
displayDetailsOnTestsThatTriggerWarnings="true"
1314
displayDetailsOnTestsThatTriggerNotices="true"
1415
displayDetailsOnTestsThatTriggerErrors="true"
1516
displayDetailsOnTestsThatTriggerDeprecations="true"
1617
displayDetailsOnSkippedTests="true"
1718
displayDetailsOnIncompleteTests="true"
19+
failOnPhpunitDeprecation="true"
1820
failOnEmptyTestSuite="true"
1921
failOnIncomplete="true"
2022
failOnRisky="true"
@@ -51,7 +53,7 @@
5153
</testsuite>
5254
</testsuites>
5355

54-
<coverage includeUncoveredFiles="true">
56+
<coverage>
5557
<report>
5658
<clover outputFile=".reports/clover.xml"/>
5759
<html outputDirectory=".reports/report/" lowUpperBound="50" highLowerBound="80"/>

rector.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of the mimmi20/monolog-factory package.
45
*
@@ -28,7 +29,7 @@
2829

2930
$rectorConfig->sets([
3031
SetList::DEAD_CODE,
31-
LevelSetList::UP_TO_PHP_81,
32+
LevelSetList::UP_TO_PHP_83,
3233
PHPUnitSetList::PHPUNIT_100,
3334
]);
3435

src/AddFormatterTrait.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of the mimmi20/monolog-factory package.
45
*

src/AddProcessorTrait.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of the mimmi20/monolog-factory package.
45
*

src/Client/ElasticsearchV7Factory.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of the mimmi20/monolog-factory package.
45
*
@@ -17,6 +18,7 @@
1718
use Elasticsearch\Common\Exceptions\AuthenticationConfigException;
1819
use Laminas\ServiceManager\Exception\ServiceNotCreatedException;
1920
use Laminas\ServiceManager\Factory\FactoryInterface;
21+
use Override;
2022
use Psr\Container\ContainerInterface;
2123

2224
use function array_filter;
@@ -38,6 +40,7 @@ final class ElasticsearchV7Factory implements FactoryInterface
3840
* @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
3941
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
4042
*/
43+
#[Override]
4144
public function __invoke(ContainerInterface $container, $requestedName, array | null $options = null): V7Client
4245
{
4346
if (!is_array($options)) {

src/Client/ElasticsearchV8Factory.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of the mimmi20/monolog-factory package.
45
*
@@ -16,6 +17,7 @@
1617
use Elastic\Elasticsearch\ClientBuilder;
1718
use Laminas\ServiceManager\Exception\ServiceNotCreatedException;
1819
use Laminas\ServiceManager\Factory\FactoryInterface;
20+
use Override;
1921
use Psr\Container\ContainerInterface;
2022

2123
use function array_filter;
@@ -36,6 +38,7 @@ final class ElasticsearchV8Factory implements FactoryInterface
3638
* @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
3739
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
3840
*/
41+
#[Override]
3942
public function __invoke(ContainerInterface $container, $requestedName, array | null $options = null): V8Client
4043
{
4144
if (!is_array($options)) {

src/ClientPluginManager.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of the mimmi20/monolog-factory package.
45
*

src/ClientPluginManagerFactory.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of the mimmi20/monolog-factory package.
45
*
@@ -15,6 +16,7 @@
1516
use Laminas\ServiceManager\Config;
1617
use Laminas\ServiceManager\Exception\ServiceNotFoundException;
1718
use Laminas\ServiceManager\Factory\FactoryInterface;
19+
use Override;
1820
use Psr\Container\ContainerExceptionInterface;
1921
use Psr\Container\ContainerInterface;
2022

@@ -33,6 +35,7 @@ final class ClientPluginManagerFactory implements FactoryInterface
3335
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
3436
* @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
3537
*/
38+
#[Override]
3639
public function __invoke(
3740
ContainerInterface $container,
3841
$requestedName,

0 commit comments

Comments
 (0)