Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Disallow use function and use const#188

Open
mikeselander wants to merge 4 commits intomasterfrom
disallow-use-function
Open

Disallow use function and use const#188
mikeselander wants to merge 4 commits intomasterfrom
disallow-use-function

Conversation

Copy link
Contributor

mikeselander commented Apr 6, 2020

This addition disallows developers from using functions, while keeping the ability to use namespaces and constants.

Special thanks to @jrfnl for building this ruleset for us and making this so easy to use!

mikeselander requested review from fklein-lu, joehoyle and rmccue April 6, 2020 19:59
mikeselander linked an issue Apr 6, 2020 that may be closed by this pull request
Copy link

jrfnl commented Apr 7, 2020

Special thanks to @jrfnl for building this ruleset for us and making this so easy to use!

Well, didn't build it just for you, but glad you like it. ;-)

mikeselander and tfrommen reacted with laugh emoji

kadamwhite added the reviewer needed label May 19, 2020
mikeselander changed the title Disallow use function Disallow use function and use const May 19, 2020
rmccue reviewed May 19, 2020
Comment on lines +6 to +7
"minimum-stability": "dev",
"prefer-stable": true,
Copy link
Member

rmccue May 19, 2020

Choose a reason for hiding this comment

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

Are these changes intentional? Neither of them will have any effect if the project isn't the root project.

Copy link
Contributor Author

mikeselander May 19, 2020 *
edited
Loading

Choose a reason for hiding this comment

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

They were, yes. phpcsextra is only released as alpha and it wouldn't install without adding these in: https://github.com/PHPCSStandards/PHPCSExtra/releases

Copy link
Member

rmccue May 19, 2020

Choose a reason for hiding this comment

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

OK, we'll have to hold on releasing this then until phpcsextra is released, as the minimum-stability won't flow through, and would make the coding standards uninstallable as a dependency.

mikeselander reacted with thumbs up emoji
mikeselander added blocked and removed reviewer needed labels May 20, 2020
Copy link
Contributor

roborourke commented May 17, 2021

Requested a stable release: PHPCSStandards/PHPCSExtra#91

mikeselander reacted with heart emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

rmccue rmccue left review comments

joehoyle Awaiting requested review from joehoyle

fklein-lu Awaiting requested review from fklein-lu

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Consider disallowing use of use function...

5 participants