Comments (2)
This is related to benevolent union types: https://phpstan.org/config-reference#checkbenevolentuniontypes
string[]
is an array with a benevolent union type as key type. And sometimes the "benevolent" part gets lost and a normal union type is reported.
from phpstan.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from phpstan.
Related Issues (20)
- preg: improve tagged unions HOT 2
- Feature request: @phpstan-nodiscard HOT 2
- Required parameter following an implicit nullable optional parameter is not detected as an issue HOT 1
- Foreach to check the type of array is not taken into account
- Missing type check on array if another item is the correct type HOT 2
- PHPDoc of closure is broken HOT 6
- Internal error: Internal error: Return value of _PHPStan_\Nette\Utils\Strings::length() must be of the type int, bool returned HOT 7
- False positive with Generics: "Type xxx is not always the same as T" HOT 5
- Bug: array in empty() always exists HOT 2
- while-true-if-break: Variable might not be defined
- Combining named and spread arguments causes argument.type and arguments.duplicate HOT 1
- Improved return type of `preg_replace` HOT 7
- narrow string on strlen() == and === comparison with integer-range HOT 2
- Array shapes with `array_reverse` wrong return type HOT 6
- Constant enumeration does not throw an error if no constant is defined HOT 2
- Suggestion: Invent syntax for array shape of a backed enum's values HOT 1
- Scope::resolveTypeFromName incorrect types HOT 1
- Narrow array on count(), string on strlen() with positive-int
- Stubs not working in combination with `function_exists()` HOT 4
- Playground 8.4 test
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpstan.