Skip to content
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

PHP 8.1 attributes #982

Merged
merged 13 commits into from
Nov 28, 2021
Merged

PHP 8.1 attributes #982

merged 13 commits into from
Nov 28, 2021

Commits on Nov 16, 2021

  1. Configuration menu
    Copy the full SHA
    56fa4ab View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2021

  1. Configuration menu
    Copy the full SHA
    0fe55fb View commit details
    Browse the repository at this point in the history
  2. Add PHP 8.1 to CI matrix

    DerManoMann committed Nov 28, 2021
    Configuration menu
    Copy the full SHA
    beb3027 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cd94d5d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    82f909f View commit details
    Browse the repository at this point in the history
  5. Improve PHP 8.1 compatibility

    Also prepare for usikng the `Generator` in place of the current static config properties
    DerManoMann committed Nov 28, 2021
    Configuration menu
    Copy the full SHA
    69c6191 View commit details
    Browse the repository at this point in the history
  6. Remove DocBlockParser::$whitelist

    This makes the `Generator` class the authority about whitelisted annotation
    namespaces. A value of `null` is interpreted as wildcard.
    
    Registers a new loader for each `Generator` instance. A new method
    `withContext()` was also added to allow to run custom code in the context
    of a configured `Generator`.
    DerManoMann committed Nov 28, 2021
    Configuration menu
    Copy the full SHA
    8fccadb View commit details
    Browse the repository at this point in the history
  7. Add PathParameter annotation

    Shortcut version of `Parameter(in='path', required: true)`.
    
    In addition to that it can be used as method parameter attribute. In that case the name
    and (optiona) type-hint are automatically configured.
    
    Example:
    ```
    public function getProduct(#[OA\PathParameter] string $product_id) {
       // ...
    }
    ```
    
    Same as:
    ```
    /**
     *   @OA\PathParameter(
     *     name="product_id",
     *     @OA\Schema(type="string")
     *   )
     */
    ```
    DerManoMann committed Nov 28, 2021
    Configuration menu
    Copy the full SHA
    277a971 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9bd315f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c47eaa0 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    865cf1b View commit details
    Browse the repository at this point in the history
  11. Add/update docs

    DerManoMann committed Nov 28, 2021
    Configuration menu
    Copy the full SHA
    4312d4f View commit details
    Browse the repository at this point in the history
  12. Switch the command line tool to using reflection by default

    The legacy `TokenAnalyser` can be used by specifying the `--legacy` (`-l`) option.
    DerManoMann committed Nov 28, 2021
    Configuration menu
    Copy the full SHA
    8906ee3 View commit details
    Browse the repository at this point in the history