You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interfaceCustomChildCreator
{
/** * Creates the object for the child element * * @param string $elementName the name of the element that has been requested * @param Project $project The project the element is in * @return object Returns the nested element */publicfunctioncustomChildCreator($elementName, Project$project);
}
With the CodeSniffer I got this error:
FILE: ...cuments\GitHub\phing\classes\phing\parser\CustomChildCreator.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
36 | ERROR | PHP4 style constructors are not allowed; use
||"__construct()" instead
|| (Generic.NamingConventions.ConstructorName.OldStyle)
----------------------------------------------------------------------
The Sniff should not compain this on Interfaces.
The text was updated successfully, but these errors were encountered:
gsherwood
changed the title
"Generic.NamingConventions.ConstructorName.OldStyle" complains old contructor in interface
Generic.NamingConventions.ConstructorName complains about old constructor in interfaces
Oct 24, 2019
In the Phing project there is this Interface
With the CodeSniffer I got this error:
The Sniff should not compain this on Interfaces.
The text was updated successfully, but these errors were encountered: