Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 7 Compatibility #47

Open
rhclayto opened this issue Mar 8, 2017 · 0 comments
Open

PHP 7 Compatibility #47

rhclayto opened this issue Mar 8, 2017 · 0 comments

Comments

@rhclayto
Copy link

rhclayto commented Mar 8, 2017

Running php7cc on the Plug code to test for PHP 7 compatibility, a couple of lines of code are flagged. Here are the notices:

File: /var/www/hosting/tellingua/com/htdocs/backend/sites/all/modules/contrib/plug/lib/Symfony/yaml/Symfony/Component/Yaml/Parser.php
> Line 97: Possible object property creation during by-reference assignment
    $parser->refs =& $this->refs;
> Line 106: Possible object property creation during by-reference assignment
    $parser->refs =& $this->refs;
> Line 163: Possible object property creation during by-reference assignment
    $parser->refs =& $this->refs;
> Line 214: Possible object property creation during by-reference assignment
    $parser->refs =& $this->refs;




File: /var/www/hosting/tellingua/com/htdocs/backend/sites/all/modules/contrib/plug/lib/Symfony/validator/Symfony/Component/Validator/Constraints/False.php
> Line 22: Reserved name "false" used as a class, interface or trait name 
    class False extends \Symfony\Component\Validator\Constraints\IsFalse
    {
    }


File: /var/www/hosting/tellingua/com/htdocs/backend/sites/all/modules/contrib/plug/lib/Symfony/validator/Symfony/Component/Validator/Constraints/True.php
> Line 22: Reserved name "true" used as a class, interface or trait name 
    class True extends \Symfony\Component\Validator\Constraints\IsTrue
    {
    }


File: /var/www/hosting/tellingua/com/htdocs/backend/sites/all/modules/contrib/plug/lib/Symfony/validator/Symfony/Component/Validator/Constraints/Null.php
> Line 22: Reserved name "null" used as a class, interface or trait name 
    class Null extends \Symfony\Component\Validator\Constraints\IsNull
    {
    }

Is this something to be concerned about when upgrading to PHP 7 (as I am about to do)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant