Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@DLMousey my biggest problem isn't just the return type, it's mostly the input type and the type of a certain variable That cannot be enforced
-
@FMashiro Hmm, not only return types but I wasn't right either. Return types and parameters as well ( function nope(string $nope)) < possible as well appearantly
-
@linuxxx ooooh I guess I'll have to contact my host to upgrade then!
Thanjs for pointing it out, I'll look into it -
@FMashiro First verify it online yourself because I can't say for sure if my sources are right but I think so 😊
-
The only thing I'm really missing in PHP is method/constructor overloading like c# or Java style
Related Rants
PHP is awesome, but it annoys me that there is no typing and that you still can get errors based on types...
Other than that, not being able to catch all errors in one catch and especially not being able to natively catch fatal errors is my biggest problem...
(not natively meaning that you can use hackish solutions but there's no "fatal error" class to use in your try catch, and you're using the register shutdown function not as intended...)
undefined
wk30
php