-
Notifications
You must be signed in to change notification settings - Fork 10
CodeIgniter4 marked as internal #6
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
Comments
It is internal in the sense that it is internally used by the framework. But we also allow it to be used by end users. So we can think that it is "semi-internal". If a user will use it, they are not covered by BC promise. Do we have other options for annotation? |
Don't know the implications in other places, but the syntax from https://docs.phpdoc.org/2.9/references/phpdoc/tags/internal.html discussing |
Can you try editing your vendor copy and adding which of these lines will phpstorm not complain:
|
Fantastic! Can you send a PR changing the docblock? Thanks. |
I'm surprised by that description in the docs. Static analysis treats The second option (in
And what we actually want here. If both work with comment text after I would recommend using the brackets to be consistent with their docs. |
@paulbalandan @MGatner |
Also - thanks for the work putting this package together. Really nice to keep my own code as clean and well-formatted as CI's. Most of the rules are the same as PSR12 in PHPStorm, I only needed a few tweaks to make them the exactly the same so I can use PHPstorm's built in style formatter and then this as part of the git commit.
(And it was Postman tests that discovered the broken code - lesson learned!) |
overrides should be done in the php-cs-fixer.dist.php, in the $overrides array. customRules should be only for instantiating custom rules |
True. I started with the distributed config from the CI4 library and tweaked the ruleset just to get it running. |
Low-prio issue, but as you have marked
CodeIgniter\CodingStandard\CodeIgniter4
as@internal
phpstorm complains on me using it. Is there a reason for this class to be internal?The text was updated successfully, but these errors were encountered: