Update all non-major dependencies
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| phpstan/phpstan | ^1.10.59 -> ^1.10.66 |
||||
| phpunit/phpunit (source) | ^11.0.4 -> ^11.1.1 |
Release Notes
phpstan/phpstan (phpstan/phpstan)
v1.10.66
Improvements 🔧
- Detect mismatch between readonly/non-readonly class parent (https://github.com/phpstan/phpstan-src/commit/986cbdfb2fd0c3de71b31ac3f212bd499d2131e1), #10789
- TypeInferenceTestCase - fix for performance problem with PHPUnit 11 (https://github.com/phpstan/phpstan-src/commit/da87a6541f97b01e35d309524f05c0d3d0bc0a00), #10757
Bugfixes 🐛
array_pushpreserves list (https://github.com/phpstan/phpstan-src/commit/5473b6701c1a9dd3ca1eb676b3b2c0dec43f2535)
Function signature fixes 🤖
- Fix
redis::getsignature (#2990), thanks @VincentLanglet!
Internals 🔍
v1.10.65
Improvements 🔧
Bugfixes 🐛
- Update BetterReflection (#2988)
- Fix ReflectionSourceStubber compatibility before PHP 8.1 (https://github.com/ondrejmirtes/BetterReflection/commit/94ca1336c58332604a74012d20286a240db376ea), https://github.com/larastan/larastan/pull/1882
- Fix trait method visibility (https://github.com/ondrejmirtes/BetterReflection/commit/d6153d513eb9111f01740394c61ff72142030089?w=1)
Function signature fixes 🤖
Internals 🔍
- Add more tests for issue #10622 (#2961), thanks @mvorisek!
- Remove unnecessary method calls in ClassReflection (#2984), thanks @staabm!
- Use
TrinaryLogic::describe()in test (https://github.com/phpstan/phpstan-src/commit/222a66cdbf67f2ae367b251ed56acda53a3d8286)
v1.10.64
Bleeding edge 🔪
- Fail build when project config uses custom extensions outside of analysed paths
- This will only occur after a run that uses already present and valid result cache
If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon:
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more
Improvements 🔧
- Introduce
ForbiddenClassNameExtensionfor append additional forbidden class prefixes (#2979), thanks @kamil-zacek! - Add
AlwaysUsedMethodExtension(#2927), thanks @axlon! - Warn about possibly stale result cache with custom extensions (https://github.com/phpstan/phpstan-src/commit/9338fdfe1611f742c65c61e5035315e1d64c4972)
- This is how it looks: https://twitter.com/OndrejMirtes/status/1770024563113390437
Bugfixes 🐛
Function signature fixes 🤖
- Fix
DOMDocument::loadreturn type (#2975), thanks @VincentLanglet! - Fix
SplObjectStorage::removeAll/Except(#2892), thanks @schlndh!
v1.10.63
v1.10.62
Improvements 🔧
- Too wide return type - report for conditional return types (https://github.com/phpstan/phpstan-src/commit/de1c07ea68c36854b46c43ee575145ad4ae2386a)
Bugfixes 🐛
- Constants deprecation depends on PHP version in comment (#2967), #10700, thanks @staabm!
- Make
@param-outwork even if it is the only conditional type in a function signature (https://github.com/phpstan/phpstan-src/commit/787c1e2b46a40ccac9bb254fd45204a310f6ff2f) - ParameterOutAssignedTypeRule - fix for conditional types (https://github.com/phpstan/phpstan-src/commit/19497ba0317be7e37f2c969118c93ce3be1e6fd2)
- ParameterOutExecutionEndTypeRule - fix for conditional types (https://github.com/phpstan/phpstan-src/commit/27c73f7f67ba74688d4ed0b3b0f5c0c3a9c60012)
- Too wide
@param-out- fix for conditional types (https://github.com/phpstan/phpstan-src/commit/5a4789339e5768628bf9bb2abdf38eff135553cd)
v1.10.61
Improvements 🔧
- Update BetterReflection to 6.25.0
- Implement PHP Version dependent deprecations for constants (https://github.com/Roave/BetterReflection/pull/1396), thanks @staabm!
- Support for
finalmodifier in traits (https://github.com/Roave/BetterReflection/pull/1383), thanks @kukulich!
- Support for conditional types in
@param-out(https://github.com/phpstan/phpstan-src/commit/effad95da555c2b6c7b305178a221e84c831df61), #10699 - Check conditional types in
@param-out(https://github.com/phpstan/phpstan-src/commit/67f9420cba9fa45501cdca87770d50c5c22bd508)
Bugfixes 🐛
- Too wide
@param-outtype - consider all execution ends at once (https://github.com/phpstan/phpstan-src/commit/d1bcf786eedbce9fee74f43f080678fa7788e4e3), #10687, #10684
Internals 🔍
- MethodReturnStatementsNode - use ExtendedMethodReflection (https://github.com/phpstan/phpstan-src/commit/3cc1a545641b172b2cb1e89030cde9baa6b0c527)
v1.10.60
Learn more about this release in an article on phpstan.org!
Major new features 🚀
- Generic
@methodtags:@method T doFoo<T>(T $p), #6371- Learn more
- #2931, #2935, thanks @mad-briller!
- Generic callable types:
callable<T>(T): T, #8964- #2938, #2945, #2946, thanks @mad-briller!
- Error on references of prefixed internal class names from PHAR files (#2932), thanks @staabm!
Bleeding edge 🔪
- Enhancements in Handling Parameters Passed by Reference
- Learn more on phpstan.org
- #2941, thanks @ljmaskey!
- Add option
reportAnyTypeWideningInVarTag(#2840), thanks @janedbal!
If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon:
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more
Improvements 🔧
- Add support for constructor assertions (#2950), #10645, thanks @axlon!
- Report uses of deprecated constants (#2953), thanks @staabm!
Bugfixes 🐛
- Fix how union of callables is understood (#2902), #10442, thanks @mad-briller!
- Fix for inferring closure parameter type from callable union (https://github.com/phpstan/phpstan-src/commit/c10476d268bedc5e7bc66b44d160a453edb1cacb)
- ArrayType - string offset might exist as integer offset (#2928), #10610, thanks @michalbundyra!
- Truncate description of huge UnionType (https://github.com/phpstan/phpstan-src/commit/039a3dc135bf9f23971437ebd4718291a1404d2d), #10614
- fix type of
$a?->b::c()and$a?->b::$c(#2933), thanks @schlndh! - fix
fn() => __FUNCTION__and__METHOD__(#2934), thanks @schlndh! - Some sort functions do not preserve a list (https://github.com/phpstan/phpstan-src/commit/034f7313064b207883a13f1e25a76975560215b9, https://github.com/phpstan/phpstan-src/commit/0977a7b0259cbe4055c6fb0200708b2ec137d770), #10627
- ArgumentsNormalizer - keep named arguments for unknown parameters (https://github.com/phpstan/phpstan-src/commit/ad34452cb12cdebd19c80a3f34ef2819c2e37bbb), #10628
- Check
T of mixed&FooandT of mixed|Foo(#2940), thanks @schlndh! - Use narrowed conditional type if/else types for subtype checks (#2948), #10622, thanks @rvanvelzen!
- Fix
isSuperTypeOfof callable/Closure when parameter count differ (#2949), #10594, thanks @takaram!
Function signature fixes 🤖
- Fix
ReflectionFunctionAbstract::getExtensionreturn type (https://github.com/phpstan/phpstan-src/commit/2ece1f82b0e95541908f052d74a1cb29f2a4b4b7) - Correct return type of
date_sun_info()function (#2947), thanks @zonuexe! - Fix return values of
mysqli get_warnings(#2929), thanks @janedbal!
Internals 🔍
- Replace composer-require-checker with composer-dependency-analyser (#2875), thanks @janedbal!
- Use
Type::isNull()inNullsafe(MethodCall|PropertyFetch)Rule(#2942), thanks @takaram!
sebastianbergmann/phpunit (phpunit/phpunit)
v11.1.1
v11.1.0: PHPUnit 11.1.0
Added
- #5689: Distinguish between self, direct and indirect deprecations
- #5696:
#[DisableReturnValueGenerationForTestDoubles]attribute for disabling return value generation for test doubles created usingcreateMock(),createMockForIntersectionOfInterfaces(),createPartialMock(),createStub(), andcreateStubForIntersectionOfInterfaces() - #5175:
#[CoversMethod]and#[UsesMethod]attributes for more fine-grained code coverage targeting - #5720: Support filtering using
--filter,--exclude-filter,--group, and--exclude-groupwhen listing tests using--list-testsand--list-tests-xmlas well as listing groups with--list-groups - #5733: Implicitly include (abstract) parent class(es) with
#[CoversClass]and#[UsesClass]attributes --only-summary-for-coverage-textCLI option to reduce the code coverage report in text format to a summary--show-uncovered-for-coverage-textCLI option to expand the code coverage report in text format to include a list of uncovered files
Changed
- #5689: The XML configuration file generated using
--generate-configurationnow generates<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">instead of<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true"> - #5708: Allow the
--group,--exclude-group,--covers,--uses, and--test-suffixCLI options to be used multiple times PHPUnit\Framework\TestCase::__construct()is now annotated to be final in preparation for declaring itfinalin PHPUnit 12- Changed how the
DeprecationTriggered,ErrorTriggered,NoticeTriggered,PhpDeprecationTriggered,PhpNoticeTriggered,PhpWarningTriggered, andWarningTriggeredevents are represented as text
Deprecated
- #5689: The
restrictDeprecationsattribute on the<source>element of the XML configuration file is now deprecated in favor of theignoreSelfDeprecations,ignoreDirectDeprecations, andignoreIndirectDeprecationsattributes - #5709: Deprecate support for using comma-separated values with the
--group,--exclude-group,--covers,--uses, and--test-suffixCLI options
How to install or update PHPUnit
v11.0.10: PHPUnit 11.0.10
Changed
- The namespaces of dependencies are now prefixed with
PHPUnitPHARinstead of justPHPUnitfor the PHAR distribution of PHPUnit
How to install or update PHPUnit
v11.0.9: PHPUnit 11.0.9
Changed
- #5766: Do not use a shell in
proc_open()if not really needed - #5772: Cleanup process handling after dropping temp-file handling
Fixed
- #5570: Windows does not support exclusive locks on stdout
How to install or update PHPUnit
v11.0.8: PHPUnit 11.0.8
Fixed
- #5765: Be more forgiving with error handlers that do not respect error suppression
How to install or update PHPUnit
v11.0.7: PHPUnit 11.0.7
Changed
- #5747: Cache result of
Groups::groups() - #5748: Improve performance of
NamePrettifier::prettifyTestMethodName() - #5750: Micro-optimize
NamePrettifier::prettifyTestMethodName()once again - #5752: Improve message for deprecation of doubling methods named "method"
Fixed
- #5760: TestDox printer does not display details about exceptions raised in before-test methods
How to install or update PHPUnit
v11.0.6: PHPUnit 11.0.6
Changed
- #5727: Prevent duplicate call of
NamePrettifier::prettifyTestMethodName() - #5739: Micro-optimize
NamePrettifier::prettifyTestMethodName() - #5740: Micro-optimize
TestRunner::runTestWithTimeout() - #5741: Save call to
Telemetry\System::snapshot() - #5742: Prevent file IO when not strictly necessary
- #5743: Prevent unnecessary
ExecutionOrderDependency::getTarget()call - #5744: Simplify
NamePrettifier::prettifyTestMethodName()
Fixed
- #5351: Incorrect code coverage metadata does not prevent code coverage data from being collected
- #5729:
assertArrayIsIdenticalToArrayOnlyConsideringListOfKeys()does not correctly handle array order - #5746: Using
-dCLI option multiple times triggers warning
How to install or update PHPUnit
v11.0.5
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this PR, check this box
Config source: https://github.com/Slamdunk/.github/blob/main/renovate-config.json
Branch automerge failure
This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.
- Branch has one or more failed status checks
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 97.89%. Comparing base (
e485ec4) to head (827ebba).
Additional details and impacted files
@@ Coverage Diff @@
## master #57 +/- ##
=========================================
Coverage 97.89% 97.89%
Complexity 149 149
=========================================
Files 15 15
Lines 332 332
=========================================
Hits 325 325
Misses 7 7
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.