-
Notifications
You must be signed in to change notification settings - Fork 17
Enhanced contracts PHPDoc #463
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adriendupuis
commented
Dec 12, 2024
src/contracts/Repository/Values/Content/Query/Criterion/DateMetadata.php
Show resolved
Hide resolved
This was referenced Dec 17, 2024
931b98e to
6482ce2
Compare
Member
|
@adriendupuis Rebase is needed here |
Don't use advanced format in summary, it won't be rendered.
Don't use advanced format in summary, it won't be rendered. Define array key type, or it will be rendered as array<string|int, …> phpDocumentor don't seem to understand self.
One docblock per constant.
4aaeeea to
5f681f9
Compare
adamwojs
approved these changes
Feb 11, 2025
konradoboza
reviewed
Feb 11, 2025
ciastektk
approved these changes
Feb 11, 2025
wiewiurdp
approved these changes
Feb 11, 2025
tbialcz
approved these changes
Feb 11, 2025
alongosz
reviewed
Feb 11, 2025
Co-authored-by: Konrad Oboza <[email protected]> Co-authored-by: Andrew Longosz <[email protected]>
konradoboza
approved these changes
Feb 13, 2025
Confusing
alongosz
approved these changes
Feb 13, 2025
|
adriendupuis
added a commit
that referenced
this pull request
Feb 13, 2025
For more details see #463 Key changes: * Enhance `DateMetadata::TRASHED` phpdoc * Enhance `Criterion::getSpecifications()` phpdoc * Enhance `Specifications` phpdoc * Capable.php: Fix phpdoc summary * VersionBuilder.php: Fix phpdoc summary, arrays and self usages * ConstraintViolationAdapter's PHPDoc: Add a summary, reword description * Enhance `Criterion::getSpecifications()` phpdoc * Enhance `DateMetadata::TRASHED` phpdoc * Enhance `DateMetadata` phpdoc * Enhance `UserMetadata` phpdoc * Enhance `DateMetadata` phpdoc * Enhance `Capable` phpdoc * Enhance `Criterion` phpdoc * Enhance `UserMetadata` phpdoc (fix typo) * Enhance `UserMetadata` phpdoc * Enhance `FieldType\Generic\Type` phpdoc * Enhance `Limitation\Type` phpdoc * LocationService: Fix count() phpdoc * Enhance `LocationService` phpdoc * Enhance `Location` phpdoc * Enhance `Location` phpdoc: @deprecated can't be nested nor used inline. * Enhance `Location` phpdoc: Add an internal link * Enhance `ValueObject` phpdoc * Enhance `FieldType\Generic\Type` phpdoc: Fix internal links * Enhance `FieldType\FieldType` phpdoc: Fix code blocks * `Limitation\Type`: type array keys * ValueObject: Format desc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Related PRs:
Description:
{@seetagsarray<string|int,rendering.<code>rendered as a single line.@seesyntax to have a working link.selfto have a link (to the current page, debatable, it could also be$this).ValueObject: Replace@ignore This method is for internal usewith the dedicated@internal, fix some@usestags.Preview
Preview is build on top of ibexa/documentation-developer#2584.
But the following comparisons focus on the improvements brought by the packages' PRs.
Ibexa\Contracts\Core\FieldType\FieldTypearray()syntax.[]syntax.Ibexa\Contracts\Core\FieldType\Generic\TypecheckValueType()makes a not-clickable reference toacceptValue().checkValueType()a working link toacceptValue().Ibexa\Contracts\Core\FieldType\Generic\ValidationError\ConstraintViolationAdapter@seetags in its introduction and<meta name="description"because the summary line can't have advanced format.@seerendered as links to references.Ibexa\Contracts\Core\Limitation\Target\Builder\VersionBuilder@seetags in its introduction, and somestring|intuntyped array keys.Ibexa\Contracts\Core\Limitation\TypeACCESS_GRANTEDwhich, in fact, is a description for the threeACCESS_constants (grouped docblock doesn't exist and because of alphabetic order, the description ends after what it introduces), about the same forVALUE_SCHEMA_constants, a not-rendered@see, and a not typed array key.Ibexa\Contracts\Core\Repository\LocationService@see, and untyped array keys.count(), a working link in its description, typed keys on several arrays.Ibexa\Contracts\Core\Repository\SearchService@see.CAPABILITY_CUSTOM_FIELDS, new summaries, and more links.Ibexa\Contracts\Core\Repository\Values\Content\Location@deprecatednot rendered because wrongly nested.@property-read) creates duplicates: it's declared twice in the PHP code, and documented twice in the reference. This is an issue I'll come back to later.Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion@see, misses links to properties and constants, and has an example rendered as a single line.Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\DateMetadataDateMetadata::TRASHEDtoTrashService::findTrashItems(), and more links in general.Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\UserMetadataIbexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Operator\SpecificationsCriterion::getSpecifications()without a link.Criterion::getSpecifications()is added with an inline tag instead of a separated tag below.Ibexa\Contracts\Core\Repository\Values\ValueObjectValueObject::attributes(), has not-typed array keys,Ibexa\Contracts\Core\Search\Capable@seein its summary.SearchServicehelps to see theCAPABILITY_constants.For QA:
Documentation: