This repository has been archived by the owner on Nov 21, 2022. It is now read-only.
generated from mimmi20/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
216 changed files
with
2,211 additions
and
1,457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -734,53 +734,3 @@ jobs: | |
|
||
- name: "Run mutation tests with infection/infection" | ||
run: "infection -s --min-covered-msi=88 --min-msi=88 --coverage=.build/coverage --only-covered --logger-github" | ||
|
||
roave-backwards-compatibility-check: | ||
name: "Check for Backward Compatibility breaks" | ||
|
||
needs: "lint" | ||
|
||
runs-on: "${{ matrix.operating-system }}" | ||
|
||
continue-on-error: false | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
operating-system: | ||
- "ubuntu-20.04" | ||
|
||
php-version: | ||
- "8.1" | ||
|
||
dependencies: | ||
- "highest" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v3" | ||
with: | ||
# Disabling shallow clone is recommended for improving relevancy of reporting | ||
fetch-depth: 0 | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/[email protected]" | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
extensions: "${{ env.PHP_EXTENSIONS }}, bcmath, sodium" | ||
ini-values: "${{ env.PHP_INI_VALUES }}" | ||
coverage: "none" | ||
tools: "${{ env.TOOLS }}" | ||
|
||
- name: "Require Roave/BackwardCompatibilityCheck" | ||
run: "composer require --no-update --no-interaction --prefer-dist --prefer-stable --dev \"roave/backward-compatibility-check:^6.1\" \"mimmi20/coding-standard:^2.6\" \"friendsofphp/php-cs-fixer:^3.4\"" | ||
|
||
- name: "Update dependencies with composer" | ||
uses: "ramsey/composer-install@v1" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
composer-options: "${{ env.COMPOSER_OPTIONS }}" | ||
|
||
- name: "Check for BC breaks" | ||
run: "vendor/bin/roave-backward-compatibility-check --format=github-actions" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -13,7 +13,7 @@ | |
$header = <<<'EOF' | ||
This file is part of the mimmi20/monolog-laminas-factory package. | ||
Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
For the full copyright and license information, please view the LICENSE | ||
file that was distributed with this source code. | ||
|
@@ -42,6 +42,10 @@ | |
'location' => 'after_open', | ||
'separate' => 'bottom', | ||
], | ||
'@PHP74Migration' => true, | ||
'@PHP74Migration:risky' => true, | ||
'@PHP80Migration' => false, | ||
'@PHP80Migration:risky' => false, | ||
] | ||
) | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -35,6 +35,7 @@ trait AddFormatterTrait | |
|
||
/** | ||
* @param array<array<string, array<string, mixed>|bool|string>|FormatterInterface>|null $options | ||
* @phpstan-param HandlerInterface&FormattableHandlerInterface $handler | ||
* @phpstan-param array{formatter?: (bool|FormatterInterface|array{enabled?: bool, type?: string, options?: array<mixed>})}|null $options | ||
* | ||
* @throws ServiceNotCreatedException | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -35,6 +35,7 @@ trait AddProcessorTrait | |
|
||
/** | ||
* @param array<array<string, array<string, mixed>|bool|string>|callable>|null $options | ||
* @phpstan-param HandlerInterface&ProcessableHandlerInterface $handler | ||
* @phpstan-param array{processors?: (callable|array{enabled?: bool, type?: string, options?: array<mixed>})}|null $options | ||
* | ||
* @throws ServiceNotCreatedException | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
@@ -40,6 +40,7 @@ public function __invoke(ContainerInterface $container, $requestedName, ?array $ | |
$maxNormalizeDepth = NormalizerFormatterFactory::DEFAULT_NORMALIZER_DEPTH; | ||
$maxNormalizeItemCount = NormalizerFormatterFactory::DEFAULT_NORMALIZER_ITEM_COUNT; | ||
$prettyPrint = false; | ||
$includeStacktraces = false; | ||
|
||
if (is_array($options)) { | ||
if (array_key_exists('format', $options)) { | ||
|
@@ -69,14 +70,14 @@ public function __invoke(ContainerInterface $container, $requestedName, ?array $ | |
if (array_key_exists('prettyPrint', $options)) { | ||
$prettyPrint = $options['prettyPrint']; | ||
} | ||
} | ||
|
||
$formatter = new LineFormatter($format, $dateFormat, $allowInlineLineBreaks, $ignoreEmptyContextAndExtra); | ||
|
||
if (is_array($options) && array_key_exists('includeStacktraces', $options)) { | ||
$formatter->includeStacktraces($options['includeStacktraces']); | ||
if (array_key_exists('includeStacktraces', $options)) { | ||
$includeStacktraces = $options['includeStacktraces']; | ||
} | ||
} | ||
|
||
$formatter = new LineFormatter($format, $dateFormat, $allowInlineLineBreaks, $ignoreEmptyContextAndExtra, $includeStacktraces); | ||
|
||
$formatter->setMaxNormalizeDepth($maxNormalizeDepth); | ||
$formatter->setMaxNormalizeItemCount($maxNormalizeItemCount); | ||
$formatter->setJsonPrettyPrint($prettyPrint); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* This file is part of the mimmi20/monolog-laminas-factory package. | ||
* | ||
* Copyright (c) 2021, Thomas Mueller <[email protected]> | ||
* Copyright (c) 2021-2022, Thomas Mueller <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
|
Oops, something went wrong.