minus-squareOlissipo@programming.devtoPHP@programming.dev•Should I create functions for packages/libraries that allow optional parameters to accept null as a value?linkfedilinkarrow-up2·25 days agoAs long as optional parameters are placed last, I don’t see why not. PHP8’s named parameters lessen the pain of using a function with optional parameters spread around, but I still stick to that rule. linkfedilink
Olissipo@programming.dev to PHP@programming.dev · 5 months agoSymfony 7.1.0 released (Symfony Blog)plus-squaresymfony.comexternal-linkmessage-square0fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkSymfony 7.1.0 released (Symfony Blog)plus-squaresymfony.comOlissipo@programming.dev to PHP@programming.dev · 5 months agomessage-square0fedilink
Olissipo@programming.dev to WordPress@lemmy.world · edit-27 months agoWooCommerce - weird behaviour and fixplus-squaremessage-squaremessage-square0fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1message-squareWooCommerce - weird behaviour and fixplus-squareOlissipo@programming.dev to WordPress@lemmy.world · edit-27 months agomessage-square0fedilink
Olissipo@programming.dev to PHP@programming.dev · 1 year agoSymfony 7.0.0 released (Symfony Blog)plus-squaresymfony.comexternal-linkmessage-square0fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkSymfony 7.0.0 released (Symfony Blog)plus-squaresymfony.comOlissipo@programming.dev to PHP@programming.dev · 1 year agomessage-square0fedilink
As long as optional parameters are placed last, I don’t see why not.
PHP8’s named parameters lessen the pain of using a function with optional parameters spread around, but I still stick to that rule.