Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency versions in composer.json #52

Merged
merged 3 commits into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/infection.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

name: "Integrate"

on:
push:
branches:
- "*.x"

jobs:
mutation_testing:
name: "5️⃣ Mutation Testing"
runs-on: "ubuntu-latest"
steps:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.3"
extensions: "json, mbstring, openssl, sqlite3, curl, uuid"

- name: "Checkout code"
uses: "actions/checkout@v3"

- name: "Fetch Git base reference"
run: "git fetch --depth=1 origin ${GITHUB_BASE_REF}"

- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "highest"
composer-options: "--optimize-autoloader"

- name: "Execute Infection"
run: "make ci-mu"
28 changes: 0 additions & 28 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,34 +145,6 @@ jobs:
- name: "Check coding style"
run: "make ci-cs"

mutation_testing:
name: "5️⃣ Mutation Testing"
needs:
- "byte_level"
- "syntax_errors"
runs-on: "ubuntu-latest"
steps:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.3"
extensions: "json, mbstring, openssl, sqlite3, curl, uuid"

- name: "Checkout code"
uses: "actions/checkout@v3"

- name: "Fetch Git base reference"
run: "git fetch --depth=1 origin ${GITHUB_BASE_REF}"

- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "highest"
composer-options: "--optimize-autoloader"

- name: "Execute Infection"
run: "make ci-mu"

rector_checkstyle:
name: "6️⃣ Rector Checkstyle"
needs:
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,21 @@
"ext-gmp": "*",
"ext-openssl": "*",
"ekino/phpstan-banned-code": "^1.0",
"infection/infection": "^0.27",
"infection/infection": "^0.28",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.8",
"phpstan/phpstan-beberlei-assert": "^1.0",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.1",
"phpstan/phpstan-strict-rules": "^1.3",
"rector/rector": "^0.19",
"rector/rector": "^1.0",
"roave/security-advisories": "dev-latest",
"symfony/phpunit-bridge": "^6.4|^7.0",
"symfony/string": "^6.4|^7.0",
"symfony/var-dumper": "^6.4|^7.0",
"symplify/easy-coding-standard": "^12.0",
"phpunit/phpunit": "^10.1"
"phpunit/phpunit": "^10.1|^11.0"
},
"suggest": {
"ext-openssl": "For OpenSSL based cyphering",
Expand Down
50 changes: 50 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
parameters:
ignoreErrors:
-
message: "#^Only numeric types are allowed in \\+, int\\|null given on the left side\\.$#"
count: 1
path: src/ASN1/Component/Length.php

-
message: "#^Only numeric types are allowed in \\-, int\\|null given on the right side\\.$#"
count: 1
path: src/ASN1/Component/Length.php

-
message: "#^Parameter &\\$offset by\\-ref type of method SpomkyLabs\\\\Pki\\\\ASN1\\\\Component\\\\Length\\:\\:expectFromDER\\(\\) expects int, int\\|null given\\.$#"
count: 1
path: src/ASN1/Component/Length.php

-
message: "#^Method SpomkyLabs\\\\Pki\\\\ASN1\\\\Element\\:\\:expectTagged\\(\\) should return SpomkyLabs\\\\Pki\\\\ASN1\\\\Type\\\\TaggedType but returns \\$this\\(SpomkyLabs\\\\Pki\\\\ASN1\\\\Element\\)\\.$#"
count: 1
Expand All @@ -10,11 +25,41 @@ parameters:
count: 1
path: src/ASN1/Type/Constructed/ConstructedString.php

-
message: "#^Parameter &\\$offset by\\-ref type of method SpomkyLabs\\\\Pki\\\\ASN1\\\\Type\\\\Constructed\\\\ConstructedString\\:\\:decodeDefiniteLength\\(\\) expects int, int\\|null given\\.$#"
count: 1
path: src/ASN1/Type/Constructed/ConstructedString.php

-
message: "#^Parameter &\\$offset by\\-ref type of method SpomkyLabs\\\\Pki\\\\ASN1\\\\Type\\\\Constructed\\\\ConstructedString\\:\\:decodeIndefiniteLength\\(\\) expects int, int\\|null given\\.$#"
count: 1
path: src/ASN1/Type/Constructed/ConstructedString.php

-
message: "#^Parameter &\\$offset by\\-ref type of method SpomkyLabs\\\\Pki\\\\ASN1\\\\Type\\\\Constructed\\\\Sequence\\:\\:decodeDefiniteLength\\(\\) expects int, int\\|null given\\.$#"
count: 1
path: src/ASN1/Type/Constructed/Sequence.php

-
message: "#^Parameter &\\$offset by\\-ref type of method SpomkyLabs\\\\Pki\\\\ASN1\\\\Type\\\\Constructed\\\\Sequence\\:\\:decodeIndefiniteLength\\(\\) expects int, int\\|null given\\.$#"
count: 1
path: src/ASN1/Type/Constructed/Sequence.php

-
message: "#^Method SpomkyLabs\\\\Pki\\\\ASN1\\\\Type\\\\Constructed\\\\Set\\:\\:decodeFromDER\\(\\) should return SpomkyLabs\\\\Pki\\\\ASN1\\\\Type\\\\Constructed\\\\Set but returns SpomkyLabs\\\\Pki\\\\ASN1\\\\Feature\\\\ElementBase\\.$#"
count: 1
path: src/ASN1/Type/Constructed/Set.php

-
message: "#^Parameter &\\$offset by\\-ref type of method SpomkyLabs\\\\Pki\\\\ASN1\\\\Type\\\\Constructed\\\\Set\\:\\:decodeDefiniteLength\\(\\) expects int, int\\|null given\\.$#"
count: 1
path: src/ASN1/Type/Constructed/Set.php

-
message: "#^Parameter &\\$offset by\\-ref type of method SpomkyLabs\\\\Pki\\\\ASN1\\\\Type\\\\Constructed\\\\Set\\:\\:decodeIndefiniteLength\\(\\) expects int, int\\|null given\\.$#"
count: 1
path: src/ASN1/Type/Constructed/Set.php

-
message: "#^Method SpomkyLabs\\\\Pki\\\\ASN1\\\\Type\\\\PrimitiveString\\:\\:decodeFromDER\\(\\) should return static\\(SpomkyLabs\\\\Pki\\\\ASN1\\\\Type\\\\PrimitiveString\\) but returns SpomkyLabs\\\\Pki\\\\ASN1\\\\Type\\\\PrimitiveString\\.$#"
count: 1
Expand All @@ -40,6 +85,11 @@ parameters:
count: 1
path: src/ASN1/Type/Structure.php

-
message: "#^Parameter \\#2 \\$offset of static method SpomkyLabs\\\\Pki\\\\ASN1\\\\Component\\\\Length\\:\\:expectFromDER\\(\\) expects int, int\\|null given\\.$#"
count: 2
path: src/ASN1/Type/Structure.php

-
message: "#^Parameter \\#2 \\$key_algo of method SpomkyLabs\\\\Pki\\\\CryptoBridge\\\\Crypto\\\\OpenSSLCrypto\\:\\:_checkSignatureAlgoAndKey\\(\\) expects SpomkyLabs\\\\Pki\\\\CryptoTypes\\\\AlgorithmIdentifier\\\\AlgorithmIdentifier, SpomkyLabs\\\\Pki\\\\CryptoTypes\\\\AlgorithmIdentifier\\\\Feature\\\\AlgorithmIdentifierType given\\.$#"
count: 2
Expand Down
Loading