Bump phpstan/phpstan from 0.12.99 to 1.0.2
Created by: dependabot[bot]
Bumps phpstan/phpstan from 0.12.99 to 1.0.2.
Release notes
Sourced from phpstan/phpstan's releases.
1.0.2
Bugfixes
🐛
- Analyze
Composer
namespace only with static reflection, some classes in PHAR are unprefixed (https://github.com/phpstan/phpstan-src/commit/95754d1c52c99a9cfebfb595d58413955bbe61d4), composer/composer#10253- ArrayType - use BenevolentUnionType even if it contains StrictMixedType (https://github.com/phpstan/phpstan-src/commit/c59330c539a5cabba7a1c06a7f468d0c3a7dcfa7), #5834, #5881, #5872, #5861
- This fixes "expects array, array given" errors
Function signature fixes
🤖
- Unified the name of the second
array_map
parameter (https://github.com/phpstan/phpstan-src/commit/94333459e3fc2cfdd2800437e2bb336bb46d304f)- More precise
connection_aborted()
signature (#715), thanks@staabm
!- More precise
str_split()
signature (#718), thanks@staabm
!DateFunctionReturnTypeExtension
: support more precise single-char date-formats (#721), thanks@staabm
!- Support
$preserve_keys
argument foriterator_to_array()
(#748), thanks@Lctrs
!1.0.1
- Fixed "Expected node type PhpParser\Node\Stmt\Property, NULL occurred" (https://github.com/phpstan/phpstan-src/commit/e5f8e72c41692014f1352c411e81e605b694fabe), #5875
DerivativeContainerFactory
- pass all arguments to the derived container (https://github.com/phpstan/phpstan-src/commit/f28c7e9d06f65fff2ebcb954a581989078929a90)PhpStanNamespaceIn3rdPartyPackageRule
- fix segfault when there's no composer.json (https://github.com/phpstan/phpstan-src/commit/d4efedbd50af2317b18a2628cbadac40d66eed6d)1.0.0
PHPStan 1.0 is here and I'm really excited about it! Read the accompanying article on PHPStan's blog and also check out the merchandise we're selling for limited time (until November 22nd). It includes white and blue PHPStan t-shirts, PHPStan stickers, and also something very special: Rule level badges that you can pin to your clothes to show off that you care about code quality
😊 Major new features
🚀
- Level 9 with checkExplicitMixed (https://github.com/phpstan/phpstan-src/commit/e5bbb52fbc9139502f231999173ba6412e62587d)
- Consistent remembering and forgetting returned values (https://github.com/phpstan/phpstan-src/commit/d4edc59b36927a2d70f2e8665e657f99dd9d6be2)
- Precise try-catch-finally analysis (https://github.com/phpstan/phpstan-src/commit/4588e73dd618e1077bfe1cec7b8e62e251d5eb95)
- Validate overriding methods in stubs (https://github.com/phpstan/phpstan-src/commit/c98d0a4946c373543c379427983e02ccef71f86c)
- Nicer type descriptions usable in PHPDocs (https://github.com/phpstan/phpstan-src/commit/03341cc6bf010faf1e99f1dbddf5cea66d56e3cf, https://github.com/phpstan/phpstan-src/commit/51d7431dbe802827bac61907d7bcb58a168dff81)
New rules
- Level 0
- Check leading and trailing file whitespace and BOM (https://github.com/phpstan/phpstan-src/commit/6905d66cf4256eae48ae997b88fbbc58e0ad2ae8)
- Check overriding constants (https://github.com/phpstan/phpstan-src/commit/89acb0db4400c95b231ae74830e8607d72824cbc)
- Check classes extending
@final
classes (https://github.com/phpstan/phpstan-src/commit/dffd2c2351e5fc5d22b752bf3b8be84bf1708f71), https://github.com/phpstan/phpstan/discussions/5343- Check that function-scoped template type is in a parameter (https://github.com/phpstan/phpstan-src/commit/18bdd34a808763764ea281d4f1b62fc0e7968873)
- Check overriding properties (https://github.com/phpstan/phpstan-src/commit/0f4885aa101e0cc49f906e72990e356bd281ec63), #4281
- Level 1
- Rule for checking null-coalescing
??
operator issues (#36), thanks@leongersen
!- Level 2
... (truncated)
Commits
-
e9e2a50
PHPStan 1.0.2 -
9d6b202
Updated PHPStan to commit bb49b3bd7b0298f654f4da1c1b88a26b02f660b6 -
e0d802b
Updated PHPStan to commit 9beb27ea1c0b695a32e64ff94c9c65606f190b0c -
40d8ff5
Updated PHPStan to commit 93cc7528b46ab7ff6314d312423609a5cfe99016 -
48d98f2
Updated PHPStan to commit 57405afa5e7f42c21ff5994681a322b9ff09bd5b -
fdf1406
Updated PHPStan to commit 94333459e3fc2cfdd2800437e2bb336bb46d304f -
c0ab495
Updated PHPStan to commit c59330c539a5cabba7a1c06a7f468d0c3a7dcfa7 -
4117f6d
New sponsor -
4ab6450
Updated PHPStan to commit 95754d1c52c99a9cfebfb595d58413955bbe61d4 -
f650daf
Update config-reference.md - Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)