-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #327 from laminas/1.28.x-merge-up-into-2.0.x_je7Wpu2i
Merge release 1.28.0 into 2.0.x
- Loading branch information
Showing
34 changed files
with
203 additions
and
108 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
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 |
---|---|---|
|
@@ -256,6 +256,7 @@ | |
"8.1", | ||
"8.2", | ||
"8.3", | ||
"8.4", | ||
"@default" | ||
] | ||
}, | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,13 @@ | ||
export enum ToolExecutionType { | ||
/** | ||
* @description Executed on every supported PHP version with lowest & latest dependencies. | ||
* In case, a lock-file is present, the minimum supported PHP version will also run with LOCKED | ||
* dependencies. | ||
*/ | ||
MATRIX = 'matrix', | ||
|
||
/** | ||
* @description Executed on the minimum PHP version with either LOCKED or LATEST dependencies. | ||
*/ | ||
STATIC = 'static', | ||
} |
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,4 @@ | ||
export enum ToolType { | ||
LINTER = 'linter', | ||
CODE_CHECK = 'code_check', | ||
} |
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,10 @@ | ||
import {ToolExecutionType} from '../enum/toolExecutionType'; | ||
import {ToolType} from '../enum/toolType'; | ||
|
||
export const CodeceptionTool = { | ||
executionType : ToolExecutionType.STATIC, | ||
name : 'Codeception', | ||
command : './vendor/bin/codecept run', | ||
filesToCheck : [ 'codeception.yml.dist', 'codeception.yml' ], | ||
toolType : ToolType.CODE_CHECK, | ||
}; |
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,11 @@ | ||
import {ToolType} from '../enum/toolType'; | ||
import {ToolExecutionType} from '../enum/toolExecutionType'; | ||
|
||
export const PhpCodeSnifferTool = { | ||
executionType : ToolExecutionType.STATIC, | ||
name : 'PHPCodeSniffer', | ||
command : './vendor/bin/phpcs -q --report=checkstyle | cs2pr', | ||
filesToCheck : [ 'phpcs.xml', 'phpcs.xml.dist' ], | ||
toolType : ToolType.CODE_CHECK, | ||
lintConfigCommand : 'xmllint --schema vendor/squizlabs/php_codesniffer/phpcs.xsd', | ||
}; |
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,10 @@ | ||
import {ToolType} from '../enum/toolType'; | ||
import {ToolExecutionType} from '../enum/toolExecutionType'; | ||
|
||
export const ComposerRequireCheckerTool = { | ||
executionType : ToolExecutionType.STATIC, | ||
name : 'Composer Require Checker', | ||
command : './vendor/bin/composer-require-checker check --config-file=composer-require-checker.json -n -v composer.json', | ||
filesToCheck : [ 'composer-require-checker.json' ], | ||
toolType : ToolType.CODE_CHECK, | ||
}; |
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,22 @@ | ||
import {ToolType} from '../enum/toolType'; | ||
import {ComposerJson} from '../config/composer'; | ||
import parseJsonFile from '../json'; | ||
import {ToolExecutionType} from '../enum/toolExecutionType'; | ||
|
||
export const InfectionTool = { | ||
executionType : ToolExecutionType.STATIC, | ||
name : 'Infection', | ||
command : detectInfectionCommand(), | ||
filesToCheck : [ 'infection.json', 'infection.json.dist' ], | ||
toolType : ToolType.CODE_CHECK, | ||
}; | ||
|
||
function detectInfectionCommand(): string { | ||
const composerJson: ComposerJson = parseJsonFile('composer.json', true) as ComposerJson; | ||
|
||
if (composerJson['require-dev']?.['roave/infection-static-analysis-plugin'] !== undefined) { | ||
return './vendor/bin/roave-infection-static-analysis-plugin'; | ||
} | ||
|
||
return './vendor/bin/infection'; | ||
} |
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,10 @@ | ||
import {ToolType} from '../enum/toolType'; | ||
import {ToolExecutionType} from '../enum/toolExecutionType'; | ||
|
||
export const PhpCsFixerTool = { | ||
executionType : ToolExecutionType.STATIC, | ||
name : 'PHP CS Fixer', | ||
command : './vendor/bin/php-cs-fixer fix -v --diff --dry-run', | ||
filesToCheck : [ '.php-cs-fixer.php', '.php-cs-fixer.dist.php' ], | ||
toolType : ToolType.CODE_CHECK, | ||
}; |
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,10 @@ | ||
import {ToolType} from '../enum/toolType'; | ||
import {ToolExecutionType} from '../enum/toolExecutionType'; | ||
|
||
export const PhpBenchTool = { | ||
executionType : ToolExecutionType.STATIC, | ||
name : 'PHPBench', | ||
command : './vendor/bin/phpbench run --revs=2 --iterations=2 --report=aggregate', | ||
filesToCheck : [ 'phpbench.json' ], | ||
toolType : ToolType.CODE_CHECK, | ||
}; |
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,10 @@ | ||
import {ToolType} from '../enum/toolType'; | ||
import {ToolExecutionType} from '../enum/toolExecutionType'; | ||
|
||
export const PHPStanTool = { | ||
executionType : ToolExecutionType.STATIC, | ||
name : 'PHPStan', | ||
command : './vendor/bin/phpstan analyse --error-format=github --ansi --no-progress', | ||
filesToCheck : [ 'phpstan.neon', 'phpstan.neon.dist', 'phpstan.dist.neon' ], | ||
toolType : ToolType.CODE_CHECK, | ||
}; |
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,11 @@ | ||
import {ToolType} from '../enum/toolType'; | ||
import {ToolExecutionType} from '../enum/toolExecutionType'; | ||
|
||
export const PHPUnitTool = { | ||
executionType : ToolExecutionType.MATRIX, | ||
name : 'PHPUnit', | ||
command : './vendor/bin/phpunit', | ||
filesToCheck : [ 'phpunit.xml.dist', 'phpunit.xml' ], | ||
toolType : ToolType.CODE_CHECK, | ||
lintConfigCommand : 'xmllint --schema vendor/phpunit/phpunit/phpunit.xsd', | ||
}; |
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,11 @@ | ||
import {ToolType} from '../enum/toolType'; | ||
import {ToolExecutionType} from '../enum/toolExecutionType'; | ||
|
||
export const PsalmTool = { | ||
executionType : ToolExecutionType.STATIC, | ||
name : 'Psalm', | ||
command : './vendor/bin/psalm --shepherd --stats --output-format=github --no-cache', | ||
filesToCheck : [ 'psalm.xml.dist', 'psalm.xml' ], | ||
toolType : ToolType.CODE_CHECK, | ||
lintConfigCommand : 'xmllint --schema vendor/vimeo/psalm/config.xsd', | ||
}; |
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,3 @@ | ||
{ | ||
"stablePHP": "8.3" | ||
} |
Oops, something went wrong.