Skip to content

Commit

Permalink
deps: allow brick/math 0.12
Browse files Browse the repository at this point in the history
deps: other dev deps update
  • Loading branch information
Spomky committed Jan 29, 2024
1 parent 597f58a commit 65bf815
Show file tree
Hide file tree
Showing 26 changed files with 192 additions and 192 deletions.
66 changes: 33 additions & 33 deletions .github/ISSUE_TEMPLATE/1_Bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,40 @@ description: ⚠️ NEVER report security issues, email security AT spomky-labs.
labels: Bug
body:
- type: input
id: affected-versions
attributes:
label: Version(s) affected
placeholder: x.y.z
validations:
required: true
id: affected-versions
attributes:
label: Version(s) affected
placeholder: x.y.z
validations:
required: true
- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of the problem
validations:
required: true
id: description
attributes:
label: Description
description: A clear and concise description of the problem
validations:
required: true
- type: textarea
id: how-to-reproduce
attributes:
label: How to reproduce
description: |
⚠️ This is the most important part of the report ⚠️
Without a way to easily reproduce your issue, there is little chance we will be able to help you and work on a fix.
Please, take the time to show us some code and/or config that is needed for others to reproduce the problem easily.
Most of the time, creating a "bug reproducer" is the best way to help us and increases the chances someone
will have a look at it.
validations:
required: true
id: how-to-reproduce
attributes:
label: How to reproduce
description: |
⚠️ This is the most important part of the report ⚠️
Without a way to easily reproduce your issue, there is little chance we will be able to help you and work on a fix.
Please, take the time to show us some code and/or config that is needed for others to reproduce the problem easily.
Most of the time, creating a "bug reproducer" is the best way to help us and increases the chances someone
will have a look at it.
validations:
required: true
- type: textarea
id: possible-solution
attributes:
label: Possible Solution
description: |
Optional: only if you have suggestions on a fix/reason for the bug
Don't hesitate to create a pull request with your solution, it helps get faster feedback.
id: possible-solution
attributes:
label: Possible Solution
description: |
Optional: only if you have suggestions on a fix/reason for the bug
Don't hesitate to create a pull request with your solution, it helps get faster feedback.
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: "Optional: any other context about the problem: log messages, screenshots, etc."
id: additional-context
attributes:
label: Additional Context
description: "Optional: any other context about the problem: log messages, screenshots, etc."
24 changes: 12 additions & 12 deletions .github/ISSUE_TEMPLATE/2_Feature_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: 🚀 Feature Request
description: RFC and ideas for new features and improvements
body:
- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of the new feature
validations:
required: true
id: description
attributes:
label: Description
description: A clear and concise description of the new feature
validations:
required: true
- type: textarea
id: example
attributes:
label: Example
description: |
A simple example of the new feature in action (include PHP code, YAML config, etc.)
If the new feature changes an existing feature, include a simple before/after comparison.
id: example
attributes:
label: Example
description: |
A simple example of the new feature in action (include PHP code, YAML config, etc.)
If the new feature changes an existing feature, include a simple before/after comparison.
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/3_Documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: 📖 Documentation Issue
description: To report typo or obsolete section in the documentation
body:
- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of the error you found in the documentation
validations:
required: true
id: description
attributes:
label: Description
description: A clear and concise description of the error you found in the documentation
validations:
required: true
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Support Question
url: https://spomky-labs.com/contact/
about: |
We use GitHub issues only to discuss about bugs and new features.
For this kind of questions about using the framework or third-party bundles,
please email us contact AT spomky-labs.com for quoting
url: https://spomky-labs.com/contact/
about: |
We use GitHub issues only to discuss about bugs and new features.
For this kind of questions about using the framework or third-party bundles,
please email us contact AT spomky-labs.com for quoting
28 changes: 14 additions & 14 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
version: 2
updates:
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "weekly"
day: "friday"
versioning-strategy: "widen"
open-pull-requests-limit: 20
allow:
- dependency-type: all
labels: [ "Dependencies" ]
directory: "/"
schedule:
interval: "weekly"
day: "friday"
versioning-strategy: "widen"
open-pull-requests-limit: 20
allow:
- dependency-type: all
labels: [ "Dependencies" ]

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 20
labels: [ "Dependencies" ]
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 20
labels: [ "Dependencies" ]
30 changes: 15 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
mu: vendor ## Mutation tests
vendor/bin/infection -s --threads=$$(nproc) --min-msi=3 --min-covered-msi=58
vendor/bin/infection -s --threads=$$(nproc) --min-msi=3 --min-covered-msi=58

tests: vendor ## Run all tests
vendor/bin/phpunit --color
vendor/bin/phpunit --color

cc: vendor ## Show test coverage rates (HTML)
vendor/bin/phpunit --coverage-html ./build
vendor/bin/phpunit --coverage-html ./build

cs: vendor ## Fix all files using defined ECS rules
vendor/bin/ecs check --fix
vendor/bin/ecs check --fix

tu: vendor ## Run only unit tests
vendor/bin/phpunit --color --group Unit
vendor/bin/phpunit --color --group Unit

ti: vendor ## Run only integration tests
vendor/bin/phpunit --color --group Integration
vendor/bin/phpunit --color --group Integration

tf: vendor ## Run only functional tests
vendor/bin/phpunit --color --group Functional
vendor/bin/phpunit --color --group Functional

st: vendor ## Run static analyse
vendor/bin/phpstan analyse
vendor/bin/phpstan analyse


################################################

ci-mu: vendor ## Mutation tests (for Github only)
vendor/bin/infection --logger-github -s --threads=$$(nproc) --min-msi=3 --min-covered-msi=58
vendor/bin/infection --logger-github -s --threads=$$(nproc) --min-msi=3 --min-covered-msi=58

ci-cc: vendor ## Show test coverage rates (console)
vendor/bin/phpunit --coverage-text
vendor/bin/phpunit --coverage-text

ci-cs: vendor ## Check all files using defined ECS rules
vendor/bin/ecs check
vendor/bin/ecs check

################################################


vendor: composer.json composer.lock
composer validate
composer install
composer validate
composer install

rector: vendor ## Check all files using Rector
vendor/bin/rector process --ansi --dry-run --xdebug
vendor/bin/rector process --ansi --dry-run --xdebug

.DEFAULT_GOAL := help
help:
@grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
@grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
.PHONY: help
8 changes: 4 additions & 4 deletions deptrac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ parameters:
- './src'
layers:
- name: 'CBOR'
collectors:
collectors:
- type: 'className'
regex: '^CBO\\'
regex: '^CBO\\'
- name: 'Vendors'
collectors:
collectors:
- { type: className, regex: '^Brick\\' }
ruleset:
CBOR:
- Vendors
- Vendors
58 changes: 29 additions & 29 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
parameters:
ignoreErrors:
-
message: "#^Instanceof between CBOR\\\\MapItem and CBOR\\\\MapItem will always evaluate to true\\.$#"
count: 1
path: src/MapObject.php
ignoreErrors:
-
message: "#^Instanceof between CBOR\\\\MapItem and CBOR\\\\MapItem will always evaluate to true\\.$#"
count: 1
path: src/MapObject.php

-
message: "#^Parameter \\#1 \\$value of static method CBOR\\\\Utils\\:\\:binToBigInteger\\(\\) expects string, string\\|null given\\.$#"
count: 3
path: src/OtherObject/DoublePrecisionFloatObject.php
-
message: "#^Parameter \\#1 \\$value of static method CBOR\\\\Utils\\:\\:binToBigInteger\\(\\) expects string, string\\|null given\\.$#"
count: 3
path: src/OtherObject/DoublePrecisionFloatObject.php

-
message: "#^Parameter \\#1 \\$value of static method CBOR\\\\Utils\\:\\:binToBigInteger\\(\\) expects string, string\\|null given\\.$#"
count: 3
path: src/OtherObject/HalfPrecisionFloatObject.php
-
message: "#^Parameter \\#1 \\$value of static method CBOR\\\\Utils\\:\\:binToBigInteger\\(\\) expects string, string\\|null given\\.$#"
count: 3
path: src/OtherObject/HalfPrecisionFloatObject.php

-
message: "#^PHPDoc tag @var with type CBOR\\\\OtherObject is not subtype of native type string\\.$#"
count: 1
path: src/OtherObject/OtherObjectManager.php
-
message: "#^PHPDoc tag @var with type CBOR\\\\OtherObject is not subtype of native type string\\.$#"
count: 1
path: src/OtherObject/OtherObjectManager.php

-
message: "#^Parameter \\#1 \\$value of static method CBOR\\\\Utils\\:\\:binToBigInteger\\(\\) expects string, string\\|null given\\.$#"
count: 3
path: src/OtherObject/SinglePrecisionFloatObject.php
-
message: "#^Parameter \\#1 \\$value of static method CBOR\\\\Utils\\:\\:binToBigInteger\\(\\) expects string, string\\|null given\\.$#"
count: 3
path: src/OtherObject/SinglePrecisionFloatObject.php

-
message: "#^PHPDoc tag @var with type CBOR\\\\Tag is not subtype of native type string\\.$#"
count: 1
path: src/Tag/TagManager.php
-
message: "#^PHPDoc tag @var with type CBOR\\\\Tag is not subtype of native type string\\.$#"
count: 1
path: src/Tag/TagManager.php

-
message: "#^Parameter \\#1 \\$value of static method CBOR\\\\Utils\\:\\:binToInt\\(\\) expects string, string\\|null given\\.$#"
count: 1
path: src/Tag/TagManager.php
-
message: "#^Parameter \\#1 \\$value of static method CBOR\\\\Utils\\:\\:binToInt\\(\\) expects string, string\\|null given\\.$#"
count: 1
path: src/Tag/TagManager.php
12 changes: 6 additions & 6 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
parameters:
level: max
paths:
- src
treatPhpDocTypesAsCertain: false
level: max
paths:
- src
treatPhpDocTypesAsCertain: false
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
- phpstan-baseline.neon
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
- phpstan-baseline.neon
4 changes: 2 additions & 2 deletions src/IndefiniteLengthByteStringObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ final class IndefiniteLengthByteStringObject extends AbstractCBORObject implemen
private const ADDITIONAL_INFORMATION = self::LENGTH_INDEFINITE;

/**
* @var ByteStringObject[]
*/
* @var ByteStringObject[]
*/
private array $chunks = [];

public function __construct()
Expand Down
12 changes: 6 additions & 6 deletions src/IndefiniteLengthListObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class IndefiniteLengthListObject extends AbstractCBORObject implements IteratorA
private const ADDITIONAL_INFORMATION = self::LENGTH_INDEFINITE;

/**
* @var CBORObject[]
*/
* @var CBORObject[]
*/
private array $data = [];

public function __construct()
Expand All @@ -48,8 +48,8 @@ public static function create(): self
}

/**
* @return mixed[]
*/
* @return mixed[]
*/
public function normalize(): array
{
return array_map(
Expand Down Expand Up @@ -102,8 +102,8 @@ public function set(int $index, CBORObject $object): self
}

/**
* @return Iterator<int, CBORObject>
*/
* @return Iterator<int, CBORObject>
*/
public function getIterator(): Iterator
{
return new ArrayIterator($this->data);
Expand Down
Loading

0 comments on commit 65bf815

Please sign in to comment.