-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for PHP 8.3 and Laravel 11 (#2)
- Loading branch information
1 parent
846811e
commit c9e845a
Showing
10 changed files
with
175 additions
and
116 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
target-branch: "develop" | ||
schedule: | ||
interval: "monthly" | ||
open-pull-requests-limit: 5 |
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
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 |
---|---|---|
@@ -1,26 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
verbose="true" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" | ||
> | ||
<coverage> | ||
<include> | ||
<directory suffix=".php">src/</directory> | ||
</include> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="Feature tests"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false"> | ||
<testsuites> | ||
<testsuite name="Feature tests"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory suffix=".php">src/</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
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,12 @@ | ||
{ | ||
"preset": "laravel", | ||
"rules": { | ||
"phpdoc_single_line_var_spacing": true, | ||
"phpdoc_align": false, | ||
"class_attributes_separation": { | ||
"elements": { | ||
"method": "one" | ||
} | ||
} | ||
} | ||
} |
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,61 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Rector\CodeQuality\Rector\FuncCall\BoolvalToTypeCastRector; | ||
use Rector\CodeQuality\Rector\FuncCall\FloatvalToTypeCastRector; | ||
use Rector\CodeQuality\Rector\FuncCall\IntvalToTypeCastRector; | ||
use Rector\CodeQuality\Rector\FuncCall\StrvalToTypeCastRector; | ||
use Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector; | ||
use Rector\CodingStyle\Rector\FuncCall\ArraySpreadInsteadOfArrayMergeRector; | ||
use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector; | ||
use Rector\Config\RectorConfig; | ||
use Rector\EarlyReturn\Rector\If_\ChangeAndIfToEarlyReturnRector; | ||
use Rector\EarlyReturn\Rector\If_\ChangeOrIfContinueToMultiContinueRector; | ||
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector; | ||
use Rector\Php81\Rector\Array_\FirstClassCallableRector; | ||
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector; | ||
use Rector\Php82\Rector\Class_\ReadOnlyClassRector; | ||
use Rector\PHPUnit\Set\PHPUnitSetList; | ||
|
||
return RectorConfig::configure() | ||
->withParallel() | ||
->withPaths([ | ||
__DIR__.'/src', | ||
__DIR__.'/tests', | ||
]) | ||
->withImportNames( | ||
importDocBlockNames: false, | ||
removeUnusedImports: true, | ||
) | ||
->withPhpSets() | ||
->withPreparedSets( | ||
deadCode: true, | ||
codingStyle: true, | ||
typeDeclarations: true, | ||
privatization: true, | ||
earlyReturn: true, | ||
strictBooleans: true, | ||
) | ||
->withSets([ | ||
PHPUnitSetList::PHPUNIT_80, | ||
PHPUnitSetList::PHPUNIT_90, | ||
PHPUnitSetList::PHPUNIT_100, | ||
]) | ||
->withRules([ | ||
BoolvalToTypeCastRector::class, | ||
FloatvalToTypeCastRector::class, | ||
IntvalToTypeCastRector::class, | ||
StrvalToTypeCastRector::class, | ||
ReadOnlyClassRector::class, | ||
ReadOnlyPropertyRector::class, | ||
]) | ||
->withSkip([ | ||
ArraySpreadInsteadOfArrayMergeRector::class, | ||
CatchExceptionNameMatchingTypeRector::class, | ||
ChangeAndIfToEarlyReturnRector::class, | ||
ChangeOrIfContinueToMultiContinueRector::class, | ||
ClosureToArrowFunctionRector::class, | ||
FirstClassCallableRector::class, | ||
NewlineAfterStatementRector::class, | ||
]); |
Oops, something went wrong.