Edit report at http://pear.php.net/bugs/bug.php?id=17847&edit=1

ID: 17847
Updated by: gsherwood@squiz.net
Reported By: eldmannen+pear at gmail dot com
Summary: No scope modifier specified for function
-Status: Open
+Status: Bogus
Type: Bug
Package: PHP_CodeSniffer
Operating System: Linux
Package Version: 1.3.0RC1
PHP Version: Irrelevant
-Assigned To:
+Assigned To: squiz
Roadmap Versions:
New Comment:

-Status: Open
+Status: Bogus
-Assigned To:
+Assigned To: squiz
This isn't a bug. If you don't like the rules of the standard, don't use
it, or create a custom standard using a ruleset.xml file that ignores
that message.

We always make sure we have scope modifiers for constructors because
some of them are private to ensure objects cannot be directly created,
as used in some design patterns, which is why our standards check for

Previous Comments:

[2010-09-06 16:03:12] eldmannen

PHPCS with the PHPCS coding standard complains that there is no scope
modifier for __construct.
A scope modifier for the class constructor should not be necessary.

Documentation does not provide any scope modifier for the constructor.


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouppear-bugs @
postedSep 7, '10 at 12:50a
activeSep 7, '10 at 12:50a

1 user in discussion

Gsherwood: 1 post



site design / logo © 2022 Grokbase