You are viewing a plain text version of this content. The canonical link for it is here.
Posted to zeta-issues@incubator.apache.org by "Michael Kliewe (JIRA)" <ji...@apache.org> on 2010/12/20 17:40:00 UTC

[jira] Updated: (ZETACOMP-36) parent:: used when there is no parent class

     [ https://issues.apache.org/jira/browse/ZETACOMP-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Kliewe updated ZETACOMP-36:
-----------------------------------

    Description: 
I get a failure with PHP_Depend in this method (class ezcTemplateTranslationConfiguration):

public function __isset( $name )
    {
        switch ( $name )
        {
            case 'locale':
            case 'manager':
                return isset( $this->properties[$name] );

            default:
                return false;
        }
        // if there is no default case before:
        return parent::__isset( $name );
    }


Following errors occured:
2010-12-20 18:36:07,527 [Thread-707339] INFO  ScriptRunner     -      [exec] The parser has reached an invalid state near line "135" in file "/source/library/ezcomponents/TemplateTranslationTiein/src/configuration.php". Please check the following conditions: The keyword "parent" was used but the class "ezcTemplateTranslationConfiguration" does not declare a parent.



So the last line is the problem, there is no parent class. And this line is unreachable, so can be deleted.


  was:
I get a failure with PHP_Depend in this method (class ezcTemplateTranslationConfiguration):

[code]public function __isset( $name )
    {
        switch ( $name )
        {
            case 'locale':
            case 'manager':
                return isset( $this->properties[$name] );

            default:
                return false;
        }
        // if there is no default case before:
        return parent::__isset( $name );
    }[code]


Following errors occured:
2010-12-20 18:36:07,527 [Thread-707339] INFO  ScriptRunner     -      [exec] The parser has reached an invalid state near line "135" in file "/opt/cruisecontrol-bin-2.8.4/projects/Yivo.mkliewe/source/library/ezcomponents/TemplateTranslationTiein/src/configuration.php". Please check the following conditions: The keyword "parent" was used but the class "ezcTemplateTranslationConfiguration" does not declare a parent.



So the last line is the problem, there is no parent class. And this line is unreachable, so can be deleted.



> parent::  used when there is no parent class
> --------------------------------------------
>
>                 Key: ZETACOMP-36
>                 URL: https://issues.apache.org/jira/browse/ZETACOMP-36
>             Project: Zeta Components
>          Issue Type: Bug
>          Components: TemplateTranslationTiein
>            Reporter: Michael Kliewe
>            Priority: Minor
>
> I get a failure with PHP_Depend in this method (class ezcTemplateTranslationConfiguration):
> public function __isset( $name )
>     {
>         switch ( $name )
>         {
>             case 'locale':
>             case 'manager':
>                 return isset( $this->properties[$name] );
>             default:
>                 return false;
>         }
>         // if there is no default case before:
>         return parent::__isset( $name );
>     }
> Following errors occured:
> 2010-12-20 18:36:07,527 [Thread-707339] INFO  ScriptRunner     -      [exec] The parser has reached an invalid state near line "135" in file "/source/library/ezcomponents/TemplateTranslationTiein/src/configuration.php". Please check the following conditions: The keyword "parent" was used but the class "ezcTemplateTranslationConfiguration" does not declare a parent.
> So the last line is the problem, there is no parent class. And this line is unreachable, so can be deleted.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.