Comments (4)
Yeah, the main reason for my use of the use of variadics is to enforce type safety since there is no other way to explicitly say we will only accept an array of a certain object. I wish there was a better way to do this in PHP.
from snmp.
@ChadSikorra are you willing to change method signatures to arrays if I enforce type safety? Intend to setup https://github.com/phpstan/phpstan
from snmp.
I wouldn't mind changing the method signature for the constructor in general on that class, as it's pretty much internally constructed. I just took a look at phpstan...looks pretty nice. And splatting does have a performance penalty (though it's pretty minor).
from snmp.
Closing this out since PhpStan was integrated.
from snmp.
Related Issues (14)
- Counter64 Values Can Exceed the PHP Max Int Value HOT 2
- Authentication was requested, but the received header has none specified. HOT 11
- Do I need to close SnmpClient? HOT 7
- No message received from host. HOT 7
- SnmpWalk method not working HOT 3
- Certain return types do not get interpeted correctly in walks HOT 7
- send string value HOT 1
- reactPHP HOT 4
- SNMP Server Component HOT 1
- Finding issues with Exception class.. HOT 3
- Equivalent for snmp_bulk_walk HOT 10
- What is the purpose of 1.3.6.1.2.1 HOT 3
- How used other MIBs HOT 4
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 snmp.