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 dependencies #406

Merged
merged 1 commit into from
Jan 1, 2025
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
4 changes: 2 additions & 2 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ios-build package.
*
* Copyright (c) 2019-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2019-2025, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down Expand Up @@ -50,5 +50,5 @@
],
),
)
->setUsingCache(true)
->setUsingCache(false)
->setFinder($finder);
2 changes: 1 addition & 1 deletion composer-dependency-analyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ios-build package.
*
* Copyright (c) 2019-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2019-2025, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@
"mimmi20/coding-standard": "^6.0.1",
"nikic/php-parser": "^5.4.0",
"phpstan/extension-installer": "^1.4.3",
"phpstan/phpstan": "^1.12.9",
"phpstan/phpstan-deprecation-rules": "^1.2.1",
"phpstan/phpstan-phpunit": "^1.4.0",
"phpstan/phpstan": "^2.1.0",
"phpstan/phpstan-deprecation-rules": "^2.0.1",
"phpstan/phpstan-phpunit": "^2.0.3",
"phpunit/phpunit": "^11.5.2",
"rector/rector": "^1.2.10",
"rector/type-perfect": "^1.0.0",
"rector/rector": "^2.0.5",
"rector/type-perfect": "^2.0.1",
"shipmonk/composer-dependency-analyser": "^1.8.2",
"symfony/process": "^7.2.0",
"symplify/phpstan-rules": "^13.0.1",
"tomasvotruba/cognitive-complexity": "^0.2.3",
"tomasvotruba/type-coverage": "^1.0.0",
"tomasvotruba/unused-public": "^1.1.0"
"symplify/phpstan-rules": "^14.1.1",
"tomasvotruba/cognitive-complexity": "^1.0.0",
"tomasvotruba/type-coverage": "^2.0.1",
"tomasvotruba/unused-public": "^2.0.0"
},
"minimum-stability": "stable",
"prefer-stable": true,
Expand Down
21 changes: 1 addition & 20 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ parameters:
- %currentWorkingDirectory%/vendor/squizlabs/php_codesniffer/autoload.php
- %currentWorkingDirectory%/vendor/squizlabs/php_codesniffer/src/Util/Tokens.php

# reports occurrences of type-checking functions always evaluated to true
checkAlwaysTrueCheckTypeFunctionCall: false # todo: fix

# reports instanceof occurrences always evaluated to true
checkAlwaysTrueInstanceof: true

# reports === and !== occurrences always evaluated to true
checkAlwaysTrueStrictComparison: true

# enable stricter analysis of benevolent union types
checkBenevolentUnionTypes: true

Expand All @@ -46,9 +37,6 @@ parameters:
# require that callable signatures are specified
checkMissingCallableSignature: true

# checks for missing typehints in iterables
checkMissingIterableValueType: true

# reports return typehints that could be narrowed down because some of the listed types are never returned
checkTooWideReturnTypesInProtectedAndPublicMethods: true

Expand Down Expand Up @@ -120,12 +108,11 @@ parameters:
narrow_param: true

ignoreErrors:
- '~Offset .(primary|secondary|build)Code. does not exist on array~'
- '~Offset .(primary|secondary|build)Code. might not exist on array~'

rules:
# code complexity
- Symplify\PHPStanRules\Rules\NoDynamicNameRule
# - Symplify\PHPStanRules\Rules\NoReturnArrayVariableListRule # todo: fix

- Symplify\PHPStanRules\Rules\ForbiddenExtendOfNonAbstractClassRule

Expand All @@ -147,14 +134,8 @@ rules:
# naming
- Symplify\PHPStanRules\Rules\RequireAttributeNameRule

# regexes
- Symplify\PHPStanRules\Rules\AnnotateRegexClassConstWithRegexLinkRule
# - Symplify\PHPStanRules\Rules\NoInlineStringRegexRule # todo fix
- Symplify\PHPStanRules\Rules\RegexSuffixInRegexConstantRule

# naming
- Symplify\PHPStanRules\Rules\Explicit\ExplicitClassPrefixSuffixRule
- Symplify\PHPStanRules\Rules\NoReturnSetterMethodRule
- Symplify\PHPStanRules\Rules\UppercaseConstantRule
- Symplify\PHPStanRules\Rules\ClassNameRespectsParentSuffixRule
- Symplify\PHPStanRules\Rules\CheckClassNamespaceFollowPsr4Rule
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ios-build package.
*
* Copyright (c) 2019-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2019-2025, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/BuildException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ios-build package.
*
* Copyright (c) 2019-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2019-2025, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/NotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ios-build package.
*
* Copyright (c) 2019-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2019-2025, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/IosBuild.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ios-build package.
*
* Copyright (c) 2019-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2019-2025, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down Expand Up @@ -67,7 +67,7 @@
continue;
}

if ($matchNeedle['buildCode'] < $matchCode['buildCode']) {

Check warning on line 70 in src/IosBuild.php

View workflow job for this annotation

GitHub Actions / UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest)

Escaped Mutant for Mutator "LessThan": @@ @@ if ($matchCode['primaryCode'] . $matchCode['secondaryCode'] !== $matchNeedle['primaryCode'] . $matchNeedle['secondaryCode']) { continue; } - if ($matchNeedle['buildCode'] < $matchCode['buildCode']) { + if ($matchNeedle['buildCode'] <= $matchCode['buildCode']) { continue; } $candidate[$matchCode['buildCode']] = $versions[$key];

Check warning on line 70 in src/IosBuild.php

View workflow job for this annotation

GitHub Actions / UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.3, lowest)

Escaped Mutant for Mutator "LessThan": @@ @@ if ($matchCode['primaryCode'] . $matchCode['secondaryCode'] !== $matchNeedle['primaryCode'] . $matchNeedle['secondaryCode']) { continue; } - if ($matchNeedle['buildCode'] < $matchCode['buildCode']) { + if ($matchNeedle['buildCode'] <= $matchCode['buildCode']) { continue; } $candidate[$matchCode['buildCode']] = $versions[$key];
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion src/IosBuildInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ios-build package.
*
* Copyright (c) 2019-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2019-2025, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/IosData.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ios-build package.
*
* Copyright (c) 2019-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2019-2025, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion tests/IosBuildTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ios-build package.
*
* Copyright (c) 2019-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2019-2025, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down