Install Joomla! on PHp 5.5.
Then switch to PHP 7.
Error appears
Joomla! works
Fatal error: Cannot use Joomla\String\String as String because 'String' is a special class name in [...]/libraries/vendor/joomla/registry/src/Format/Json.php on line 12
PHP 7 Beta 2
Joomla! 3.4.3
Yes we fixed this in the Joomla 3.5 branch by changing the class name to StringHelper. Although we've left the old wrapper String class in place in case people are using it for b/c, we merged it to the 3.5 branch because JString now inherits the StringHelper class rather than String (as they are all static methods this shouldn't be an issue and on top of that the only difference would occur if people initialised and typehinted the class against a class only introduced in 3.4.0)
TLDR: If you test against the 3.5-branch (or 3.5 nightly build at http://developer.joomla.org/cms-packages/) this should be fixed. Closing the issue :)
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-07-28 11:03:28 |
Closed_By | ⇒ | wilsonge |
It's a know issue. Joomla 3.4 isn't compatible with PHP7 yet.
Joomla 3.5 should be compatible. To my knowlege all issues are fixed there.
Can you confirm that @mbabker and @wilsonge ?