Skip to content

PHP 7 Compatibility #47

Description

@rhclayto

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)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions