Skip to content

Conversation

@martin-georgiev
Copy link
Owner

@martin-georgiev martin-georgiev commented Mar 29, 2025

Summary by CodeRabbit

  • Documentation
    • Updated external reference links to PostgreSQL documentation to point to version 17.
    • Revised URLs to use secure HTTPS, ensuring all documentation references are current and consistent.

@martin-georgiev martin-georgiev enabled auto-merge (squash) March 29, 2025 03:03
@coderabbitai
Copy link

coderabbitai bot commented Mar 29, 2025

Walkthrough

This pull request updates the PostgreSQL documentation URL references in several PHPDoc comments across the Doctrine DBAL Types and ORM Query AST Functions. All changes modify links from a "current" or HTTP version to reference PostgreSQL version 17 and ensure the use of HTTPS. No code functionality or public API declarations were altered.

Changes

Files Change Summary
src/MartinGeorgiev/Doctrine/DBAL/Types/*.php Updated PostgreSQL documentation URLs from "current" to version 17 in PHPDoc comments.
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/*.php Modified documentation URLs by switching from HTTP to HTTPS and updating links to PostgreSQL version 17 where applicable.

Poem

Hopping through the doc updates so bright,
My links have leaped to version seventeen in sight.
Secure and swift, a bunny’s delight,
Carrots and code aligned just right.
I bounce with joy in every byte! 🐇

✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (3)
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayNumberOfDimensions.php (1)

7-11: Review Documentation URL for ARRAY_NDIMS()
The @see URL has been changed to use HTTPS; however, it now points to PostgreSQL documentation for version 9.6. Since other files reference version 17 for some functionalities, please verify if referencing version 9.6 here is intentional.

src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Unnest.php (1)

7-11: Consistent Documentation URL for UNNEST()
The @see URL has been updated to HTTPS and points to the PostgreSQL docs for version 9.6. It would be beneficial to confirm that the version used here is correct relative to other parts of the project.

src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayLength.php (1)

7-11: Documentation URL HTTPS Update for ARRAY_LENGTH()
The @see URL update now uses HTTPS and points to documentation for PostgreSQL version 9.4. Please double-check that this version is the intended target, or update it for consistency with other documentation references if needed.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4cdc638 and a3577a2.

📒 Files selected for processing (14)
  • src/MartinGeorgiev/Doctrine/DBAL/Types/Cidr.php (1 hunks)
  • src/MartinGeorgiev/Doctrine/DBAL/Types/CidrArray.php (1 hunks)
  • src/MartinGeorgiev/Doctrine/DBAL/Types/DoublePrecisionArray.php (1 hunks)
  • src/MartinGeorgiev/Doctrine/DBAL/Types/Inet.php (1 hunks)
  • src/MartinGeorgiev/Doctrine/DBAL/Types/InetArray.php (1 hunks)
  • src/MartinGeorgiev/Doctrine/DBAL/Types/Macaddr.php (1 hunks)
  • src/MartinGeorgiev/Doctrine/DBAL/Types/MacaddrArray.php (1 hunks)
  • src/MartinGeorgiev/Doctrine/DBAL/Types/RealArray.php (1 hunks)
  • src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayDimensions.php (1 hunks)
  • src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayLength.php (1 hunks)
  • src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayNumberOfDimensions.php (1 hunks)
  • src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Cast.php (1 hunks)
  • src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Unaccent.php (1 hunks)
  • src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Unnest.php (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (9)
  • GitHub Check: PHP 8.4 + Doctrine ORM 3.0 + Doctrine Lexer 3.0
  • GitHub Check: PHP 8.4 + Doctrine ORM 2.14 + Doctrine Lexer 2.1
  • GitHub Check: PHP 8.3 + Doctrine ORM 2.18 + Doctrine Lexer latest
  • GitHub Check: PHP 8.3 + Doctrine ORM latest + Doctrine Lexer 3.0
  • GitHub Check: PHP 8.2 + Doctrine ORM 3.0 + Doctrine Lexer 3.0
  • GitHub Check: PHP 8.1 + Doctrine ORM latest + Doctrine Lexer 3.0
  • GitHub Check: PHP 8.1 + Doctrine ORM latest + Doctrine Lexer 2.1
  • GitHub Check: PHP 8.1 + Doctrine ORM 2.14 + Doctrine Lexer latest
  • GitHub Check: sloth
🔇 Additional comments (11)
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Cast.php (1)

16-21: Documentation URL Update for PostgreSQL CAST()
The @see URL has been updated to reference PostgreSQL version 17, ensuring that users are directed to the current official documentation.

src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Unaccent.php (1)

9-13: Documentation URL Update for UNACCENT()
The @see URL for PostgreSQL UNACCENT has been updated to use HTTPS and now points to version 17. This change improves security and aligns with the latest docs.

src/MartinGeorgiev/Doctrine/DBAL/Types/InetArray.php (1)

10-17: Updated PostgreSQL Documentation URL for INET Array Type

The PHPDoc comment now references the PostgreSQL 17 documentation for the INET data type. This update aligns with the new standard and improves documentation accuracy without affecting functionality.

src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayDimensions.php (1)

9-11: Review the PostgreSQL Version in the URL

The documentation URL has been updated to use HTTPS:

@see https://www.postgresql.org/docs/9.6/static/functions-array.html

However, note that while other links have been updated to reference PostgreSQL version 17, this one remains at version 9.6. Please verify if this version is intentional or if it should be similarly updated to version 17 for consistency.

src/MartinGeorgiev/Doctrine/DBAL/Types/Macaddr.php (1)

12-19: Updated Documentation URL for MACADDR Data Type

The PHPDoc comment for the MACADDR class now points to:

@see https://www.postgresql.org/docs/17/datatype-net-types.html#DATATYPE-MACADDR

This change is a clear improvement in accuracy as it references the PostgreSQL 17 documentation.

src/MartinGeorgiev/Doctrine/DBAL/Types/RealArray.php (1)

7-14: Refreshed Documentation Link for REAL Array Type

The PHPDoc block now uses the updated URL:

@see https://www.postgresql.org/docs/17/datatype-numeric.html

This correctly directs users to the PostgreSQL 17 numeric data type documentation, ensuring consistency with other changes.

src/MartinGeorgiev/Doctrine/DBAL/Types/DoublePrecisionArray.php (1)

7-14: Revised Documentation URL for DOUBLE PRECISION Array Type

The link is now updated to:

@see https://www.postgresql.org/docs/17/datatype-numeric.html

This update aligns with the documentation updates across the codebase, providing accurate and secure reference links.

src/MartinGeorgiev/Doctrine/DBAL/Types/CidrArray.php (1)

13-13: Documentation URL Update for CIDR Array
The PHPDoc @see annotation has been updated to reference the PostgreSQL version 17 documentation for the CIDR data type. This change is clear, consistent, and non-invasive.

src/MartinGeorgiev/Doctrine/DBAL/Types/Inet.php (1)

15-15: Documentation URL Update for INET
The updated @see annotation now correctly points to the PostgreSQL 17 documentation for the INET data type, ensuring consistency with the overall update.

src/MartinGeorgiev/Doctrine/DBAL/Types/MacaddrArray.php (1)

12-12: Documentation URL Update for MACADDR Array
The PHPDoc for the MACADDR[] data type now uses the PostgreSQL version 17 URL, which aligns with the modifications in the other related files.

src/MartinGeorgiev/Doctrine/DBAL/Types/Cidr.php (1)

15-15: Documentation URL Update for CIDR
The @see annotation in the PHPDoc of the CIDR class has been updated to refer to the PostgreSQL 17 documentation, maintaining consistency across the codebase.

@martin-georgiev martin-georgiev merged commit c866ae3 into main Mar 29, 2025
44 of 46 checks passed
@martin-georgiev martin-georgiev deleted the docblocks branch March 29, 2025 03:06
@coveralls
Copy link

Coverage Status

coverage: 93.097%. remained the same
when pulling a3577a2 on docblocks
into 4cdc638 on main.

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.

3 participants