-
-
Notifications
You must be signed in to change notification settings - Fork 930
Insights: phpstan/phpstan
Overview
Could not load contribution data
Please try again later
1 Pull request merged by 1 person
-
Update baselines for refs/heads/2.1.x
#13457 merged
Sep 6, 2025
1 Pull request opened by 1 person
-
docs: document parameter closure this extensions
#13443 opened
Sep 2, 2025
46 Issues closed by 2 people
-
Call to function is_string() with string|false will always evaluate to false.
#7773 closed
Sep 6, 2025 -
`Call to function is_null() with Foo|null will always evaluate to false` in do-while loop condition
#9445 closed
Sep 6, 2025 -
Inline assignment triggers "Call to function is_bool() with bool will always evaluate to false"
#9666 closed
Sep 6, 2025 -
false positive for "Call to function is_null() with null will always evaluate to false"
#12087 closed
Sep 6, 2025 -
False Positive of `function.alreadyNarrowedType` (function call variable assignment)
#13268 closed
Sep 6, 2025 -
never written static private property in final class not detected
#13384 closed
Sep 6, 2025 -
investigate slow tests / perf regression
#13455 closed
Sep 5, 2025 -
class.notFound error when using a template
#13454 closed
Sep 5, 2025 -
Enum is not validated if the variable type is nullable.
#13456 closed
Sep 5, 2025 -
`array_column` with array of objects evaluates incorrectly in PHP 8.2
#9204 closed
Sep 4, 2025 -
Wrong type for `iterable` param with phpdoc type `array<int, Token>|Tokens`
#13411 closed
Sep 4, 2025 -
Final class not checked for __get/__set on parent class
#13450 closed
Sep 4, 2025 -
code above always terminates - but closure might not run
#13451 closed
Sep 4, 2025 -
`RedisCluster::multi()` return type is inferred incorrectly
#13392 closed
Sep 4, 2025 -
Variable type not narrowed as expected
#13449 closed
Sep 4, 2025 -
CarbonPeriod (from nesbot/carbon) triggering incorrect foreach.nonIterable
#13405 closed
Sep 2, 2025 -
Incorrect check implode() function for 8.0-8.4
#12079 closed
Sep 2, 2025 -
implode/join with null as second argument throws but is not caught by the rule
#5760 closed
Sep 2, 2025 -
Incorrect type inference for spread operator when passing to a function with variadic parameters
#13403 closed
Sep 2, 2025 -
match (true) with comparison operators
#13399 closed
Sep 2, 2025 -
Intersection of array shapes drops fields of the rest of the shapes
#13397 closed
Sep 2, 2025 -
"Call to static method Food::bar() on a separate line has no effect" inside try/catch
#10819 closed
Sep 2, 2025 -
Property A::$map (Ds\Map<string, string>) does not accept Ds\Map<mixed, mixed>.
#7824 closed
Sep 2, 2025 -
Property $a (`Ds\Map<A, string>`) does not accept `Ds\Map<mixed, mixed>`
#10303 closed
Sep 2, 2025 -
Missing public API to detect if `Scope` is in a property hook
#13393 closed
Sep 2, 2025 -
FP: object casted to array does not consider child class properties
#2730 closed
Sep 2, 2025 -
SimpleXMLElement false-positives after update to 0.12.99
#5766 closed
Sep 2, 2025 -
DOM stubbed properties not working
#8837 closed
Sep 2, 2025 -
github error formatter mentioned users via phpdoc tags
#10051 closed
Sep 2, 2025 -
String offsets are always considered invalid if they aren't strictly `int`
#3803 closed
Sep 2, 2025 -
Cannot unset value that is isset
#7286 closed
Sep 2, 2025 -
False Positive "Cannot access an offset on mixed."
#12447 closed
Sep 2, 2025 -
SimpleXMLElement Should Accept String
#8236 closed
Sep 2, 2025 -
Improper error for random_int params
#13433 closed
Sep 2, 2025 -
@phpstan-assert conditional type ignores param default values
#9435 closed
Sep 2, 2025 -
Possibly wrong type check for nullable parameters in function `session_set_cookie_params`
#7772 closed
Sep 2, 2025 -
False-positive: Method never returns XX so it can be removed from the return type.
#10312 closed
Sep 2, 2025 -
Improve support for is_file and family
#6788 closed
Sep 2, 2025 -
Unresolved native return type with bypass finals despite having phpstan-ignore
#13372 closed
Sep 2, 2025 -
Method_exists calls in traits should be ignored
#13252 closed
Sep 2, 2025 -
DOMElement::$attributes type is no longer generic
#13365 closed
Sep 1, 2025 -
PHPStan 2.1.18 adds `ArrayAccess` to type when setting key on `non-empty-array`
#13294 closed
Sep 1, 2025 -
PHPStan autoload error on v2.1.18+
#13369 closed
Aug 31, 2025 -
Closure passed to array_map inside another Closure causes type error
#13360 closed
Aug 31, 2025
9 Issues opened by 8 people
-
private properties from a closure-scope are not seen
#13458 opened
Sep 6, 2025 -
Templated return type error message is self-contradictory
#13453 opened
Sep 4, 2025 -
PHPStan thinks variance of ReflectionClass<T> is different in 8.4 vs earlier versions
#13452 opened
Sep 4, 2025 -
Possible false positive null check within a read-only class on nullable properties
#13446 opened
Sep 3, 2025 -
Extending Memcached does not allow to use proper types.
#13445 opened
Sep 2, 2025 -
Recognize the \Memcached::cas() can change the \Memcached::getResultCode()
#13444 opened
Sep 2, 2025 -
phpdoc: `non-empty-array` + variadic = not reported about error
#13442 opened
Sep 2, 2025 -
Seemingly same type reports as invalid/incompatible.
#13440 opened
Sep 2, 2025 -
Incorrect analyzing of array_shift with non-empty-list
#13438 opened
Sep 1, 2025
40 Unresolved conversations
Sometimes conversations happen on old items that aren’t yet closed. Here is a list of all the Issues and Pull Requests with unresolved conversations.
-
Support wildcards in paths in config file
#7867 commented on
Sep 1, 2025 • 0 new comments -
PHPStan found error: "expects TKey of (int|string), int|string given"
#8268 commented on
Sep 2, 2025 • 0 new comments -
False positive `property.nonObject` in anonymous function
#13321 commented on
Sep 2, 2025 • 0 new comments -
Access to undefined constant not reported in edge-cases
#10256 commented on
Sep 2, 2025 • 0 new comments -
RegexIterator returns a generic type with unknown parameters
#13325 commented on
Sep 2, 2025 • 0 new comments -
array_keys() with filter treated as non-empty array after not empty source array check
#13377 commented on
Sep 2, 2025 • 0 new comments -
Resolving concat vs. sprintf generalizes too quickly
#13378 commented on
Sep 2, 2025 • 0 new comments -
Promoting protected property to public in subclass generates `uninitialized property`
#13380 commented on
Sep 2, 2025 • 0 new comments -
Require 2nd parameter of `Closure::bind` to be not-null when `$this` is used directly inside the anonymous function
#13386 commented on
Sep 2, 2025 • 0 new comments -
List type changed to `list<*ERROR*>` when list changed inside loop
#13385 commented on
Sep 2, 2025 • 0 new comments -
Allow @phpstan-assert-if-true on properties
#13259 commented on
Sep 2, 2025 • 0 new comments -
Mixed is assignable to any generic type
#11935 commented on
Sep 2, 2025 • 0 new comments -
$message from core Exception cannot have type assigned
#11761 commented on
Sep 2, 2025 • 0 new comments -
Help phpstan understand what shape array has been created when looping over an array with known shape
#13000 commented on
Sep 2, 2025 • 0 new comments -
Filtered array of enum incorrectly narrowed to empty array
#13421 commented on
Sep 2, 2025 • 0 new comments -
False positives for `offsetAccess.notFound`
#13422 commented on
Sep 2, 2025 • 0 new comments -
[Enum/Trait] Call to function method_exists() will always evaluate to false
#7599 commented on
Sep 2, 2025 • 0 new comments -
False positives with unpacked non-null arguments in object
#9334 commented on
Sep 2, 2025 • 0 new comments -
implement loose comparison semantics
#8224 commented on
Sep 2, 2025 • 0 new comments -
Allow assert-if-true to narrow down array keys
#11236 commented on
Sep 2, 2025 • 0 new comments -
Not null Array shape property compared to null should report an error
#11609 commented on
Sep 3, 2025 • 0 new comments -
Nullsafe with optional object shape report undefined property
#11424 commented on
Sep 3, 2025 • 0 new comments -
Method with this-out cannot apply union to template type of array-key
#13374 commented on
Sep 3, 2025 • 0 new comments -
Method should return list<class-string<S of object>> but returns list<class-string<T of object>>.
#13345 commented on
Sep 3, 2025 • 0 new comments -
FP: Parameter passed by reference should be variable, reference method passed
#1501 commented on
Sep 4, 2025 • 0 new comments -
PHPDoc block is ignored for closures/anonymous functions
#3770 commented on
Sep 4, 2025 • 0 new comments -
Add a way to ignore/override a stub from an extension
#10906 commented on
Sep 5, 2025 • 0 new comments -
Dependency Dashboard
#6533 commented on
Sep 5, 2025 • 0 new comments -
ext/xml: set_*_handler() functions allows to set relative method names for callables
#9970 commented on
Sep 6, 2025 • 0 new comments -
cannot store `phpstan-assert-if-true` result in a variable
#10040 commented on
Sep 6, 2025 • 0 new comments -
`@phpstan-assert-if-true` doesn't work with nested properties
#9717 commented on
Sep 6, 2025 • 0 new comments -
assert-if-true inference difference when array shape is wrapped in list
#12434 commented on
Sep 6, 2025 • 0 new comments -
`@phpstan-assert-if-(true|false) static $var` is not working
#11289 commented on
Sep 6, 2025 • 0 new comments -
Type lost when assigning variable in method argument
#12234 commented on
Sep 6, 2025 • 0 new comments -
Only one possible (always entered) loop exit path is not detected
#5919 commented on
Sep 6, 2025 • 0 new comments -
Update github-actions (major)
#11128 commented on
Sep 4, 2025 • 0 new comments -
Update dependency serverless to v4
#12269 commented on
Aug 31, 2025 • 0 new comments -
Update playground-api (major)
#12270 commented on
Sep 5, 2025 • 0 new comments -
Update website (major)
#12271 commented on
Sep 5, 2025 • 0 new comments -
playground: backup changes in localStorage to prevent data loss
#12974 commented on
Sep 3, 2025 • 0 new comments