-
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.
Add support for php 8.0 to 8.3, dropps support of php 7
- Loading branch information
Showing
7 changed files
with
95 additions
and
50 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
vendor | ||
composer.lock | ||
var/ |
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,39 +1,34 @@ | ||
{ | ||
"name" : "pluswerk/uptime-robot", | ||
"description" : "Simple wrapper to call uptime-robot heartbeat unified", | ||
"type" : "library", | ||
"license": "LGPL-3.0-or-later", | ||
"authors" : [ | ||
{ | ||
"name": "Stefan Lamm", | ||
"email": "stefan.lamm@pluswerk.ag", | ||
"homepage": "https://pluswerk.ag" | ||
} | ||
], | ||
"autoload" : { | ||
"psr-4" : { | ||
"Pluswerk\\UptimeRobot\\" : "src/" | ||
} | ||
}, | ||
"require" : { | ||
"php" : "^7.2 || ~8.0 || ~8.1", | ||
"psr/log": "^1 || ^2 || ^3" | ||
}, | ||
"require-dev": { | ||
"pluswerk/grumphp-config": "^4.0 || ^5.0" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"phpro/grumphp": true, | ||
"pluswerk/grumphp-config": true | ||
} | ||
}, | ||
"extra": { | ||
"pluswerk/grumphp-config": { | ||
"auto-setting": true | ||
}, | ||
"grumphp": { | ||
"config-default-path": "vendor/pluswerk/grumphp-config/grumphp.yml" | ||
} | ||
"name": "pluswerk/uptime-robot", | ||
"description": "Simple wrapper to call uptime-robot heartbeat unified", | ||
"license": "LGPL-3.0-or-later", | ||
"type": "library", | ||
"authors": [ | ||
{ | ||
"name": "Stefan Lamm", | ||
"email": "stefan.lamm@pluswerk.ag", | ||
"homepage": "https://pluswerk.ag" | ||
} | ||
], | ||
"require": { | ||
"php": "^8.0", | ||
"psr/log": "^1 || ^2 || ^3" | ||
}, | ||
"require-dev": { | ||
"pluswerk/grumphp-config": "^6.0 || ^7.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Pluswerk\\UptimeRobot\\": "src/" | ||
} | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"ergebnis/composer-normalize": true, | ||
"phpro/grumphp": true, | ||
"phpstan/extension-installer": true, | ||
"pluswerk/grumphp-config": true | ||
} | ||
}, | ||
"extra": {} | ||
} |
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,16 @@ | ||
imports: | ||
- { resource: vendor/pluswerk/grumphp-config/grumphp.yml } | ||
parameters: | ||
convention.process_timeout: 240 | ||
convention.security_checker_blocking: true | ||
convention.jsonlint_ignore_pattern: { } | ||
convention.xmllint_ignore_pattern: { } | ||
convention.yamllint_ignore_pattern: { } | ||
convention.phpcslint_ignore_pattern: { } | ||
convention.phpcslint_exclude: { } | ||
convention.xlifflint_ignore_pattern: { } | ||
convention.rector_ignore_pattern: { } | ||
convention.rector_enabled: true | ||
convention.rector_config: rector.php | ||
convention.rector_clear-cache: false | ||
convention.phpstan_level: null |
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,42 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use PLUS\GrumPHPConfig\RectorSettings; | ||
use Rector\Config\RectorConfig; | ||
use Rector\Caching\ValueObject\Storage\FileCacheStorage; | ||
|
||
return static function (RectorConfig $rectorConfig): void { | ||
$rectorConfig->parallel(); | ||
$rectorConfig->importNames(); | ||
$rectorConfig->importShortClasses(); | ||
$rectorConfig->cacheClass(FileCacheStorage::class); | ||
$rectorConfig->cacheDirectory('./var/cache/rector'); | ||
|
||
$rectorConfig->paths( | ||
array_filter(explode("\n", (string)shell_exec("git ls-files | xargs ls -d 2>/dev/null | grep -E '\.(php)$'"))) | ||
); | ||
|
||
// define sets of rules | ||
$rectorConfig->sets( | ||
[ | ||
...RectorSettings::sets(true), | ||
...RectorSettings::setsTypo3(false), | ||
] | ||
); | ||
|
||
// remove some rules | ||
// ignore some files | ||
$rectorConfig->skip( | ||
[ | ||
...RectorSettings::skip(), | ||
...RectorSettings::skipTypo3(), | ||
|
||
/** | ||
* rector should not touch these files | ||
*/ | ||
//__DIR__ . '/src/Example', | ||
//__DIR__ . '/src/Example.php', | ||
] | ||
); | ||
}; |
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