Update all non-major dependencies
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
api-platform/core (source) | require | patch |
^2.4 -> ^2.5
|
composer/semver | require-dev | patch |
^1.5 -> ^1.7
|
friendsofphp/php-cs-fixer | require-dev | patch |
2.16.7 -> 2.16.10
|
myclabs/php-enum | require | patch |
1.7.6 -> 1.7.7
|
phpstan/phpstan | require-dev | patch |
0.12.54 -> 0.12.66
|
phpstan/phpstan-phpunit | require-dev | patch |
0.12.16 -> 0.12.17
|
symfony/browser-kit (source) | require-dev | patch |
4.4.17 -> 4.4.18
|
symfony/framework-bundle (source) | require | patch |
4.4.16 -> 4.4.18
|
symfony/http-client (source) | require-dev | patch |
4.4.17 -> 4.4.18
|
symfony/lock (source) | require | patch |
4.4.16 -> 4.4.18
|
symfony/messenger (source) | require | patch |
4.4.16 -> 4.4.18
|
symfony/phpunit-bridge (source) | require-dev | patch |
4.4.16 -> 4.4.18
|
vimeo/psalm | require-dev | patch |
^4.0 -> ^4.4
|
Release Notes
FriendsOfPHP/PHP-CS-Fixer
v2.16.10
- minor #5314 Enable testing with PHPUnit 9.x (sanmai)
- minor #5338 clean ups (SpacePossum)
- minor #5339 NoEmptyStatementFixer - fix more cases (SpacePossum)
- minor #5340 NamedArgumentTransformer - Introduction (SpacePossum)
- minor #5344 Update docs: do not use deprecated create method (SpacePossum)
- minor #5356 RuleSet description fixes (SpacePossum)
- minor #5360 DX: clean up detectIndent methods (kubawerlos)
- minor #5370 DX: update PHPUnit usage to use external Prophecy trait and solve warning (keradus)
- minor #5373 DX: MagicMethodCasingFixerTest - fix test case description (keradus)
- minor #5374 DX: PhpUnitDedicateAssertInternalTypeFixer - add code sample for non-default config (keradus)
v2.16.9
- bug #5095 Annotation - fix for Windows line endings (SpacePossum)
- bug #5221 NoSuperfluousPhpdocTagsFixer - fix for single line PHPDoc (kubawerlos)
- bug #5225 TernaryOperatorSpacesFixer - fix for alternative control structures (kubawerlos)
- bug #5235 ArrayIndentationFixer - fix for nested arrays (kubawerlos)
- bug #5248 NoBreakCommentFixer - fix throw detect (SpacePossum)
- bug #5250 SwitchAnalyzer - fix for semicolon after case/default (kubawerlos)
- bug #5253 IO - fix cache info message (SpacePossum)
- bug #5273 Fix PHPDoc line span fixer when property has array typehint (ossinkine)
- bug #5274 TernaryToNullCoalescingFixer - concat precedence fix (SpacePossum)
- feature #5216 Add RuleSets to docs (SpacePossum)
- minor #5226 Applied CS fixes from 2.17-dev (GrahamCampbell)
- minor #5229 Fixed incorrect phpdoc (GrahamCampbell)
- minor #5231 CS: unify styling with younger branches (keradus)
- minor #5232 PHP8 - throw expression support (SpacePossum)
- minor #5233 DX: simplify check_file_permissions.sh (kubawerlos)
- minor #5236 Improve handling of unavailable code samples (julienfalque, keradus)
- minor #5239 PHP8 - Allow trailing comma in parameter list support (SpacePossum)
- minor #5254 PHP8 - mixed type support (SpacePossum)
- minor #5255 Tests: do not skip documentation test (keradus)
- minor #5256 Docs: phpdoc_to_return_type - add new example in docs (keradus)
- minor #5261 Do not update Composer twice (sanmai)
- minor #5263 PHP8 support (SpacePossum)
- minor #5266 PhpUnitTestCaseStaticMethodCallsFixer - PHPUnit 9.x support (sanmai)
- minor #5267 Improve InstallViaComposerTest (sanmai)
- minor #5268 Add GitHub Workflows CI, including testing on PHP 8 and on macOS/Windows/Ubuntu (sanmai)
- minor #5269 Prep work to migrate to PHPUnit 9.x (sanmai, keradus)
- minor #5275 remove not supported verbose options (SpacePossum)
- minor #5276 PHP8 - add NoUnreachableDefaultArgumentValueFixer to risky set (SpacePossum)
- minor #5277 PHP8 - Constructor Property Promotion support (SpacePossum)
- minor #5292 Disable blank issue template and expose community chat (keradus)
- minor #5293 Add documentation to "yoda_style" sniff to convert Yoda style to non-Yoda style (Luc45)
- minor #5295 Run static code analysis off GitHub Actions (sanmai)
- minor #5298 Add yamllint workflow, validates .yaml files (sanmai)
- minor #5302 SingleLineCommentStyleFixer - do not fix possible attributes (PHP8) (SpacePossum)
- minor #5303 Drop CircleCI and AppVeyor (keradus)
- minor #5304 DX: rename TravisTest, as we no longer test only Travis there (keradus)
- minor #5305 Groom GitHub CI and move some checks from TravisCI to GitHub CI (keradus)
- minor #5308 Only run yamllint when a YAML file is changed (julienfalque, keradus)
- minor #5309 CICD: create yamllint config file (keradus)
- minor #5311 OrderedClassElementsFixer - PHPUnit Bridge support (ktomk)
- minor #5316 PHP8 - Attribute support (SpacePossum)
- minor #5321 DX: little code grooming (keradus)
v2.16.8
- bug #5325 NoBreakCommentFixer - better throw handling (SpacePossum)
- bug #5327 StaticLambdaFixer - fix for arrow function used in class with $this (kubawerlos, SpacePossum)
- bug #5333 Fix file missing for php8 (jderusse)
- minor #5328 Fixed deprecation message version (GrahamCampbell)
- minor #5330 DX: cleanup Github Actions configs (kubawerlos)
phpstan/phpstan
v0.12.66
🔧
Improvements - Support
@pure
and@phpstan-pure
annotations (#412), thanks @b1rdex! - Support
@impure
and@phpstan-impure
(#412) - It closes these issues: #3746, #3844, #4301, #2105, #929, #1826
🔪
Bleeding edge - Detect stub file added multiple times (phpstan/phpstan-src@
4a82eec
) - BooleanAndConstantConditionRule - check LogicalAnd (phpstan/phpstan-src@
40a76e8
) - BooleanOrConstantConditionRule - check LogicalOr (phpstan/phpstan-src@
ae9a558
)
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.
🐛
Bugfixes - Fix return type of arrow function (phpstan/phpstan-src@
e9b783a
), #4339 - Apply conditional expressions for non-empty arrays inside foreach (phpstan/phpstan-src@
35db779
), #4343
🤖
Function signature fixes - Updated return values for
zip_open()
(#419), #4341, thanks @spud! - Updated PHP 8 stubs (phpstan/phpstan-src@
d586b93
) - Improved
setcookie()
andsetrawcookie()
signatures (phpstan/phpstan-src@ccb1d4d
), #4348 -
array_combine()
dynamicExtension (#418), thanks @VincentLanglet! -
array_rand()
return type extension (#417), thanks @VincentLanglet! - Update
ctype_*
function signature (#421), thanks @BackEndTea!
v0.12.65
🔧
Improvements - New option
excludePaths
that replacesexcludes_analyse
and allows for more granular settings - different exclusions for analysed paths and discovering symbols in 3rd party code (phpstan/phpstan-src@bf35a10
) - #3749, #1796. Read more about it in this comment. - Clear cache directory - delete old containers (phpstan/phpstan-src@
db0a5f6
), #4328
🐛
Bugfixes - Generics - do not generalize array shape (phpstan/phpstan-src@
94e3443
) - Arrow functions - allow more precise return type even when native return type is present (phpstan/phpstan-src@
3d0ac6f
), #4275 -
array_filter
w/ arrow functions return type extension (#402), thanks @b1rdex! - Make IntegerRangeType represent open intervals properly (#409), #577, thanks @jlherren!
- Improve specified type in comparisons (#390), thanks @jlherren!
- Register missing SplObjectStorage stub (phpstan/phpstan-src@
143741c
) - Solve issues with arrow functions containing void expression (phpstan/phpstan-src@
7ac6383
), #4292, #3348 - Fix
isset()
bug (phpstan/phpstan-src@3d6461c
), #4290 - Fix infinite recursion with
count()
calls in TypeSpecifier (phpstan/phpstan-src@69e68a7
), #4300
🤖
Function signature fixes - Fix function signatures for
preg_replace_callback*
for PHP 7.4+ (#411), thanks @jabrandes! - Sync array_unique parameter names with PHP 8 (phpstan/phpstan-src@
9e7bdf7
)
v0.12.64
🚀
Major new feature Dependent variables
PHPStan can now understand relationships between different variables. Cases like these are now understood correctly:
if ($debug) {
$foo = 'bar';
}
if ($debug) {
// previously: Variable $foo might not be defined.
// now: no error
echo $foo;
}
Additionally, this feature fixes all these issues: #801, #806, #1209, #1306, #1722, #1865, #2980, #3371, #3986
🐛
Bugfixes - Implement property name as an expression in
TypesAssignedToPropertiesRule
(phpstan/phpstan-src@7458d1e
) - Updated
nikic/php-parser
(phpstan/phpstan-src@19bf582
), #4194
🤖
Function signature fixes - Changing return type of
Collator::compare
toint|false
(#410), thanks @vasekbrychta! - Update PHP 8 stubs (phpstan/phpstan-src@
4430549
), #4268
v0.12.63
🐛
Bugfixes - Methods and functions marked as
#[Pure]
but having@throws
are considered to have side effects (phpstan/phpstan-src@7537f81
), #4232 - Do not infer property types from constructor if the property already has a native type (phpstan/phpstan-src@
d245dab
), #4234 - Fix false positive with nullsafe operator (phpstan/phpstan-src@
75d00c9
), #4199 - Php8SignatureMapProvider - prefer functionMap return type if PHP 8 stub file has only PHPDoc (phpstan/phpstan-src@
893813c
), #4205
🤖
Function signature fixes - Update functionMap with functions that return false on both PHP 7 and PHP 8 (phpstan/phpstan-src@
43e5399
)
v0.12.62
Support relative paths in extension-installer (phpstan/phpstan-src@0e306c6
), phpstan/extension-installer#17
Starting with phpstan/phpstan
0.12.62 and phpstan/extension-installer
1.1.0, relative paths to extension configs are used. This allows the generated config to be moved across filesystems, for example from a host system to a Docker container.
v0.12.61
🐛
Bugfixes - Inferred property type for missing assigned property should not be set to implicit mixed (phpstan/phpstan-src@
5b89088
), #4227
🤖
Function signature fixes - Fix wrong function signature of
posix_getpwuid
andposix_getgrgid
(#408), thanks @aragon999!
v0.12.60
🔧
Improvements - Infer private properties in constructor, even if typehinted (#374), thanks @Baldinof!
- Updated nikic/php-parser (phpstan/phpstan-src@
030b4f5
) - Optimize range() dynamic return type extension for big arrays (phpstan/phpstan-src@
af5ba63
), #4207 - Obsolete Docker image note (phpstan/phpstan-src@
80d8afb
)
🐛
Bugfixes - Delete result cache file when it fails to load (phpstan/phpstan-src@
c22e620
), #4200 - Match expression - fix default handling (phpstan/phpstan-src@
1dfade1
), #4204 - TypeSpecifier - resolve values from fetched constants (phpstan/phpstan-src@
761c962
), #4206 - Fix bug when specifying empty array (phpstan/phpstan-src@
a73b48f
)
🤖
Function signature fixes - Fix Normalizer's normalize method can return false (#403), thanks @TRowbotham!
- Fix wrong function signature of get_include_path() (#404), thanks [@ste93cry](https://github.com/st
Renovate configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.