Skip to content

Commit

Permalink
Merge pull request #458 from mimmi20/updates
Browse files Browse the repository at this point in the history
update dependencies
  • Loading branch information
mimmi20 authored Jan 3, 2025
2 parents d1afdf0 + e6936dc commit 389a6b2
Show file tree
Hide file tree
Showing 41 changed files with 49 additions and 68 deletions.
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 ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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 ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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 @@ -40,18 +40,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.4",
"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
19 changes: 0 additions & 19 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 @@ -125,7 +113,6 @@ parameters:
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
- 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 ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/Bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/BotSyndicationReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/BotTrancoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/BrowserTypeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/DownloadManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/EmailClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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 ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/FeedReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/Library.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/LinkChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/MobileApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/MultimediaPlayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/OfflineBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/Pim.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/SearchBot.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/SearchEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/SecurityChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/SecuritySearchBot.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/SeoAnalytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/ServiceAgent.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/SiteMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/SocialMediaAgent.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/Tool.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/Transcoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/TypeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/TypeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/TypeLoaderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/Unknown.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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/UseragentAnonymizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* This file is part of the ua-browser-type package.
*
* Copyright (c) 2015-2024, Thomas Mueller <mimmi20@live.de>
* Copyright (c) 2015-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
Loading

0 comments on commit 389a6b2

Please sign in to comment.