Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visibility required #848

Closed
wants to merge 5 commits into from
Closed

Visibility required #848

wants to merge 5 commits into from

Conversation

MathiasReker
Copy link
Contributor

Visibility MUST be declared on all properties and methods; abstract and final MUST be declared before the visibility; static MUST be declared after the visibility.

Visibility MUST be declared on all properties and methods; abstract and final MUST be declared before the visibility; static MUST be declared after the visibility.
public const SIMPLE_FLOAT = '(?:' . self::DEC . '\.' . self::DEC . '?|\.' . self::DEC . ')';
public const EXP = '(?:e[+-]?' . self::DEC . ')';
public const FLOAT = '(?:' . self::SIMPLE_FLOAT . self::EXP . '?|' . self::DEC . self::EXP . ')';
public const NUMBER = '~' . self::FLOAT . '|' . self::BIN . '|' . self::HEX . '|' . self::DEC . '~iA';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These can be private.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like these are still public.

lib/PhpParser/Parser/Php7.php Show resolved Hide resolved
lib/PhpParser/ParserAbstract.php Outdated Show resolved Hide resolved
lib/PhpParser/PrettyPrinterAbstract.php Outdated Show resolved Hide resolved
lib/PhpParser/PrettyPrinterAbstract.php Outdated Show resolved Hide resolved
lib/PhpParser/Parser/Php7.php Show resolved Hide resolved
@nikic nikic closed this in 050342b Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants