-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare
auditor-bundle
6 release (#425)
* Same `doctrine/orm` requirement as `damienharper/auditor` * Same PHP-CS-Fixer config as `damienharper/auditor` * Same composer scripts config as `damienharper/auditor` * Same PHPStan config as `damienharper/auditor` * Same Rector config as `damienharper/auditor` * PHP-CS-Fixer * PHPStan fixes * DHMiddleware has been renamed to AuditorMiddleware * PHPUnit 11.x * temporary fix for PHPUnit 11.x * Adjusted deps * Same Rector config as `damienharper/auditor` * DHMiddleware has been renamed to AuditorMiddleware * Rector + PHP-CS-Fixer + PHPStan * Updated composer scripts * Fixed Symfony 5.4 failing test
- Loading branch information
1 parent
d0599b1
commit 4539f0e
Showing
34 changed files
with
321 additions
and
421 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
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
use PhpCsFixer\Config; | ||
use PhpCsFixer\Finder; | ||
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory; | ||
|
||
return (new Config()) | ||
->setParallelConfig(ParallelConfigFactory::detect()) // @TODO 4.0 no need to call this manually :poop: | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@PHP82Migration' => true, | ||
'@Symfony' => true, | ||
'@Symfony:risky' => true, | ||
'@DoctrineAnnotation' => true, | ||
'@PhpCsFixer' => true, | ||
'@PhpCsFixer:risky' => true, | ||
'@PHPUnit100Migration:risky' => true, | ||
// 'date_time_immutable' => true, | ||
'general_phpdoc_annotation_remove' => [ | ||
'annotations' => [ | ||
'expectedDeprecation', | ||
'expectedException', | ||
'expectedExceptionMessage', | ||
'expectedExceptionMessageRegExp', | ||
], | ||
], | ||
'ordered_interfaces' => true, | ||
'ordered_traits' => true, | ||
'phpdoc_to_param_type' => true, | ||
'phpdoc_to_property_type' => true, | ||
'phpdoc_to_return_type' => true, | ||
'regular_callable_call' => true, | ||
'simplified_if_return' => true, | ||
'get_class_to_class_keyword' => true, | ||
'mb_str_functions' => true, | ||
'modernize_strpos' => true, | ||
'no_useless_concat_operator' => false, // TODO switch back on when the `src/Console/Application.php` no longer needs the concat | ||
'numeric_literal_separator' => true, | ||
'string_implicit_backslashes' => true, // https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7786 | ||
'php_unit_test_case_static_method_calls' => false, | ||
'php_unit_test_class_requires_covers' => false, | ||
]) | ||
->setFinder( | ||
(new Finder()) | ||
->ignoreDotFiles(false) | ||
->ignoreVCSIgnored(true) | ||
->in(__DIR__.'/src') | ||
->notPath('DependencyInjection/Configuration.php') | ||
->in(__DIR__.'/tests') | ||
->exclude('App/var') | ||
) | ||
; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.3/phpunit.xsd" bootstrap="tests/bootstrap.php" | ||
executionOrder="depends,defects" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" | ||
requireCoverageMetadata="false" beStrictAboutCoverageMetadata="true"> | ||
<coverage includeUncoveredFiles="true"> | ||
<report> | ||
<html outputDirectory="tests/coverage"/> | ||
</report> | ||
</coverage> | ||
<logging/> | ||
<php> | ||
<ini name="error_reporting" value="-1"/> | ||
<server name="KERNEL_CLASS" value="DH\AuditorBundle\Tests\App\Kernel"/> | ||
<server name="APP_ENV" value="test" force="true"/> | ||
<server name="SHELL_VERBOSITY" value="-1"/> | ||
<!-- <server name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>--> | ||
<env name="BOOTSTRAP_CLEAR_CACHE_ENV" value="test"/> | ||
</php> | ||
<testsuites> | ||
<testsuite name="Auditor Bundle test suite"> | ||
<directory suffix="Test.php">tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.