You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
anlutro
changed the title
Add support for ['Class', 'method'] over 'Class:method'
Remove support for 'Class:method' in favour of ['Class', 'method']
Oct 16, 2014
Stays more consistent with PHP's syntax -
[$obj, method]
can be passed tocall_user_func
for example, whereasClass:method
is purely made up by me.In modern PHP versions it's also easier and looks cleaner to do
[Class::class, 'method']
thanClass::class.':method'
.['Class', 'method']
in 0.6.'Class:method'
in 0.7.Places to add:
Places to remove 'Class:method' syntax:
The text was updated successfully, but these errors were encountered: