News for hackers. Stuff that matters.
Re:Simply Secure PHP Cryptography by bpicolo on Thursday July 13, 2017 @02:38PM (#14763931)
Scalar type declarations don't help detect usage of undefined variables, as an example. Phan is the only tool I've found that does, but it's a very heavyweight thing, given how necessary it is to prevent undefined variable exceptions.
Re:Simply Secure PHP Cryptography by muglug on Thursday July 13, 2017 @02:43PM (#14763966)
I wrote a similar tool that's slightly less heavyweight (doesn't rely on a separate extension): https://getpsalm.org/
Re:Simply Secure PHP Cryptography by bpicolo on Thursday July 13, 2017 @02:55PM (#14764082)
I'm going to be trying it out. Thanks. The more lints the better when dealing with legacy monoliths!
Re:Simply Secure PHP Cryptography by CiPHPerCoder on Thursday July 13, 2017 @02:44PM (#14763976)
Yes, Psalm is great. We use it in a lot of our projects, and in the future will be using it in all of them. We absolutely love it. (It's on my "to blog about" queue.)
Re:Simply Secure PHP Cryptography by CiPHPerCoder on Thursday July 13, 2017 @02:39PM (#14763939)
That's a separate concern from truthiness. And if you aren't using nullable types (a 7.1+ feature), passing NULL gives you a TypeError. :)