Comments (5)
@GrahamCampbell is it actually correct phpDoc 🤔? I have never seen such format in my life.
Shouldn't it be:
/**
* @param array{order_by: string, sort: string} $parameters See information below.
*
* Available parameters:
* - `order_by`: Return deployments ordered by id, iid, created_at, updated_at, or ref fields (default is id)
* - `sort`: Return deployments sorted in asc or desc order (default is desc)
*/
or something like that?
from php-cs-fixer.
Yeh, in modern phpdoc style. This code was written before any PHP static analyzers existed, and back then, this was the most popular way to document array shapes. Most PHP 5.3 code that documented array shape would have used that syntax, at the time (most code did not document types).
from php-cs-fixer.
This is caused by #7012. Reverting it fixes the issue.
from php-cs-fixer.
Closing this because of this.
from php-cs-fixer.
This is breaking for thousands of codebases. 😭
from php-cs-fixer.
Related Issues (20)
- TODO: create `DeprecatedRuleSetDescriptionInterface`, similar to `DeprecatedFixerInterface`
- Two passes needed for method_argument_space + single_line_comment_style/no_trailing_whitespace
- Two passes needed for array_syntax+ single_space_around_construct
- Two passes needed for `no_useless_else` + `no_whitespace_in_blank_line` / `blank_line_before_statement`
- Two passes needed for no_superfluous_phpdoc_tags + phpdoc_add_missing_param_annotation HOT 3
- Create a `@PER-CS` ruleset that aliases the "newest" PER-CS set
- `single_line_empty_body` contradicts the PSR-12 code style HOT 1
- Reference assignment operator =& gets broken up HOT 16
- Introduce `check` command as an alias for `fix --dry-run`
- Make GetClassToClassKeywordFixer check composer.json require HOT 2
- `ReturnToYieldFromFixer` error on file-wide return
- `no_unneeded_control_parentheses` does not remove parentheses in logical expression HOT 2
- Consider renaming `new_with_braces` to `new_with_parentheses` HOT 4
- PharException: internal corruption of phar "/var/www/html/vendor/friendsofphp/php-cs-fixer/php-cs-fixer" HOT 3
- Rule php_unit_data_provider_static doesn't recognize new attribute DataProvider syntax HOT 2
- Update the `phpdoc_to_comment` rule to recognize annotations for generic traits HOT 3
- PHPUnit: migrate `@doesNotPerformAssertions` to `->expectNotToPerformAssertions()`
- Mark DTO classes as readonly
- Linting Exception in non-grouped list of const/function imports
- no_superfluous_phpdoc_tags.allow_future_params
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-cs-fixer.