-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Lock phpdocumentor/reflection-docblock version #165
Lock phpdocumentor/reflection-docblock version #165
Conversation
Thank you! Reverting to phpdocumentor/reflection-docblock 5.3.0 caused no change in the stubs file. What change should I expect? |
See here: https://github.com/IanDelMar/wordpress-stubs/tree/phpdoc-demo These steps
give this diff: |
Thank you. I run it on PHP 7.4 |
I've tried running it on PHP 8.1. Now I see the difference. |
This happens with PHP 7.4 as well. I first thought that my local setup caused it and then tried with this workflow which gave the same result: name: Generate stubs
on: workflow_dispatch
env:
php-version: '7.4'
jobs:
generate-stubs:
name: Generate stubs
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
ini-file: development
php-version: ${{ env.php-version }}
- name: Install dependencies
run: composer install --no-interaction --no-progress --prefer-dist
- name: Generate stubs
run: |
./generate.sh # Generate stubs
- name: Commit file
run: |
git config --local user.name "GitHub Actions"
git config --local user.email "[email protected]"
git add wordpress-stubs.php
git commit -m "Update WordPress stubs" || exit 0
git push origin ${{ github.ref_name }} |
All right. I want Core contributors to put all these types into core. |
The "Integrate" workflow does not cache the dependencies. I think it should also be reproducible if you rerun the workflow on #162. |
Related #166 |
I do not benefit from this project!!! No new client with WordPress from phpstan/php-stubs. BTW I always manually review stubs changes. |
I know how to make this project robust. But this project runs against WordPress development. Core should contains these by default. |
Presently, I am doing this for v6.5. I will initiate a pull request once I have completed reviewing the changes. |
The release of phpDocumentor/ReflectionDocBlock v5.4.0 seems to have introduced an issue affecting the visitor functionality. Numerous
@phpstan-param
and@phpstan-return
annotations are no longer present. Further investigation is needed. Locking the version at 5.3.0 is as a temporary measure until the issue is resolved.