JMSSecurityExtraBundle icon indicating copy to clipboard operation
JMSSecurityExtraBundle copied to clipboard

Bug : Final Class String

Open ghost opened this issue 6 years ago • 3 comments

Hi,

Thank you for this bundle. Is it possible to make it work with php7.2 ? Tks

PHP Fatal error: Cannot use JMS\SecurityExtraBundle\Security\Util\String as String because 'String' is a special class name in /var/www/websav/src/Sedona/WebSAVBundle/Controller/ProductItemController.php on line 6

PHP version : PHP 7.2.15-1+0~20190209065123.16+stretch~1.gbp3ad8c0 (cli) (built: Feb 9 2019 06:51:24) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.15-1+0~20190209065123.16+stretch~1.gbp3ad8c0, Copyright (c) 1999-2018, by Zend Technologies

OS Version : PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"

ghost avatar Feb 12 '19 15:02 ghost

Solution would be here renaming the string class to text class since String is a reserved name in PHP7. @izitech-evolution

jamalo avatar Feb 13 '19 08:02 jamalo

See #231

jamalo avatar Feb 13 '19 09:02 jamalo

Hi,

Tks for your fast responses. You save my day. It works fine.

ghost avatar Feb 13 '19 09:02 ghost