Skip to content

Commit

Permalink
Global Project update
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Jan 1, 2020
1 parent a2b35e6 commit 8b13c5f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@
},
"require-dev": {
"php-coveralls/php-coveralls": "^2.0",
"phpstan/phpstan": "^0.11",
"phpstan/phpstan-beberlei-assert": "^0.11.0",
"phpstan/phpstan-deprecation-rules": "^0.11",
"phpstan/phpstan-phpunit": "^0.11",
"phpstan/phpstan-strict-rules": "^0.11",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-beberlei-assert": "^0.12",
"phpstan/phpstan-deprecation-rules": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
"phpstan/phpstan-strict-rules": "^0.12",
"phpunit/phpunit": "^7.5|^8.0",
"rector/rector": "^0.5"
"rector/rector": "^0.5|^0.6",
"symfony/var-dumper": "^4.3|^5.0"
},
"suggest": {
"ext-bcmath": "BCMath extension needed to handle the Big Float and Decimal Fraction Tags"
Expand Down
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ parameters:
- src
ignoreErrors:
- '#Method CBOR\\OtherObject\\DoublePrecisionFloatObject::rightShift\(\) should return GMP but returns resource\.#'
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
Expand Down
2 changes: 1 addition & 1 deletion src/ListObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ListObject extends AbstractCBORObject implements \Countable, \IteratorAggr
public function __construct(array $data = [])
{
list($additionalInformation, $length) = LengthCalculator::getLengthOfArray($data);
array_map(function ($item) {
array_map(static function ($item): void {
if (!$item instanceof CBORObject) {
throw new InvalidArgumentException('The list must contain only CBORObject objects.');
}
Expand Down
2 changes: 1 addition & 1 deletion src/MapObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ final class MapObject extends AbstractCBORObject implements \Countable, \Iterato
public function __construct(array $data = [])
{
list($additionalInformation, $length) = LengthCalculator::getLengthOfArray($data);
array_map(function ($item) {
array_map(static function ($item): void {
if (!$item instanceof MapItem) {
throw new InvalidArgumentException('The list must contain only MapItem objects.');
}
Expand Down
2 changes: 1 addition & 1 deletion src/OtherObject/NullObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static function createFromLoadedData(int $additionalInformation, ?string
return new self();
}

public function getNormalizedData(bool $ignoreTags = false)
public function getNormalizedData(bool $ignoreTags = false): void
{
}
}

0 comments on commit 8b13c5f

Please sign in to comment.