Skip to content

PHP 7 Compatibility #47

@rhclayto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions