URLHelper::get_params() return value#2439
Conversation
fix return type annotation per PHPStan error. Also add @example tag and clean up the code.
|
Much cleaner! Just changed |
|
whoops! Yeah I had thought to make it |
|
Oh roger, that I thought you had settled on |
|
OK, I'll change it to |
…ber/timber into bugfix/url-helper-param-return-value
Corregir un error de ortografía también
|
OK @jarednova - done. If you could give another once-over that'd be great. |
|
Once-overed! Looks good from here |
PHPStan considers implicit null returns a bug:
The fix is to always explicitly return, as well as declare the right
@returntype. I did some cleanup for conciseness, too.No usage changes or other considerations I'm aware of. Tests still pass.