Comments (5)
So, I want to start with the original scope here - only parameters. And we'll make a followup ticket for chained calls.
Step by step we'll get to fully functional NPEs inspection =)
from phpinspectionsea.
This is going to be the main feature of the next release ;)
I just hope that amount of reported bugs will be low after 2.3.3 released today, so we could take finally more features into the next release...
from phpinspectionsea.
May I add nullable types in general to this issue, e.g.:
function f(): ?T {}
f()->m(); // requires null check
I just wrote about this and would love to link your brilliant extension as an example that can help to prevent this kind of mistakes. 😻
from phpinspectionsea.
Ready, fresh binary pushed as well. Please also note limitations.
from phpinspectionsea.
For beta-testing:
- download PhpInspectionsEA.jar file from our master branch;
- in IDE follow this path: File -> Settings -> Plugins;
- under the plugins list click "Install from disk" and point to the downloaded file;
- apply chnages, restart ide and activate the inspection (File -> Settings->Editor -> Inspections -> Php -> Php Inspections (EA Extended) -> Probable bugs -> Null pointer exceptions prevention (beta)
from phpinspectionsea.
Related Issues (20)
- False positive: This statement seems to be disconnected from its parent foreach. HOT 5
- PHP named attributes are not taken into account HOT 7
- Exceptions occurred on invoking the intention '[EA] Open dependency manifest' on a copy of the file. HOT 1
- java.lang.Throwable: Control-flow exceptions HOT 1
- Roadmap for Q1 and Q2 of 2024 HOT 3
- AmbiguousMethodsCallsInArrayMappingInspection used in both Extended and Ultimate plugin
- [EA] New value type (bool) is not matching the resolved parameter type HOT 5
- Inspections slow to refresh HOT 1
- java.lang.NullPointerException
- False positive: null-coalesce suggested: "$test::class ?? null"
- [FP] `Senseless proxy function` for overwritten constructor with promoted property
- False-positive "not matching the resolved parameter type" with $_POST HOT 2
- Potentially false-positive `Operations priority`
- Merge with parent if removes comments HOT 1
- Potential false-positive `[] operator not supported for strings`
- mkdir replacement looses recursive flag
- Incorrect Inspection for unused
- False positive `may not support offset operations` for mb_str_split
- Enums are treated as empty classes
- Class overrides a field of a parent class
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 phpinspectionsea.