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
{{ message }}
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.
I've just tested out the latest Joomla with PHP 7 and found that the \Joomla\String\String class is stopping Joomla from working under PHP 7. The reason is that "String" is a reserved word (or actually a reserved class) under PHP 7. So I hacked my Joomla a bit and renamed \Joomla\String\String (and all references to it) to \Joomla\String\Text - that worked out fine and is so far the only compatibility issue with PHP 7.
How do you think this is best solved? I've seen another project where they renamed String to String_ (yes, with an underscore) which sounds kind of stupid. So far the only good naming scheme I found was to rename it to Text (where the complete namespace would become \Joomla\Text\Text). What do you think?
RFC
The text was updated successfully, but these errors were encountered:
The String package has been updated to use StringHelper as the class name instead of String (see joomla-framework/string#9). In CMS version 3.5 that change is backported and the String class isn't used by core (see joomla/joomla-cms#6600).
I've just tested out the latest Joomla with PHP 7 and found that the \Joomla\String\String class is stopping Joomla from working under PHP 7. The reason is that "String" is a reserved word (or actually a reserved class) under PHP 7. So I hacked my Joomla a bit and renamed \Joomla\String\String (and all references to it) to \Joomla\String\Text - that worked out fine and is so far the only compatibility issue with PHP 7.
How do you think this is best solved? I've seen another project where they renamed String to String_ (yes, with an underscore) which sounds kind of stupid. So far the only good naming scheme I found was to rename it to Text (where the complete namespace would become \Joomla\Text\Text). What do you think?
RFC
The text was updated successfully, but these errors were encountered: