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

Update phpdocumentor/reflection requirement from ~5.2.0 to ~6.0.0 #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 18, 2024

Updates the requirements on phpdocumentor/reflection to permit the latest version.

Release notes

Sourced from phpdocumentor/reflection's releases.

6.0.0

In this version we added support for Attributes and improved the way this project can be extended using Reducers. Added support for php 8.3 features and upgraded to version 5 of phpparser.

Attributes

In PHP8 attributes were added to the language. Attributes are great at runtime but kinda hurdle to take in reflection of the code base as we do not load any classes into our runtime. We are just processing your code as it was plain text. This means that attribute classes are not available as classes, but also a lot of information is gone that you would normally have when loading attributes.

In this version we added a way to support reflection of attributes describing the format of the defined attributes and their call parameters. CallParameters have an optional name if named parameters are used in the usage of an attribute. This should give our users enough information to get everything out. More features will be added in the future.

Reducers

During the development of the project we noticed that we were handling similar constructs over and over again. But as we wanted to keep the factories creating the elements decouples we were not able to reuse code. The new concept of Reducer solves this issue. Reducers are post creation strategies that are executed after the factory created an element. Attributes are a good example of extra data that can be added to any kind of code element, the creation of attributes is always the same. Each factory can have a number of reducers and they can be defined per factory.

Removed deprecation

In php 8.2 dynamic properties were deprecated as this project was using dynamic properties to add extra information to the phpparser nodes we needed to change that functionality. The foundation for this change including a forward compatibility option were added in v5.3 and with this new release the deprecation is removed. From now on FQSEN of nodes is only available as a node attribute. If your code contains custom factories replace the the usage of $object->fqsen with $object->getAttribute('fqsen')

phpparser v5

We switched internally to phpparser v5 to ensure this project will keep working with the latest features in php. For normal usecases there won't be any difference. phpparser is still able to process old code back to php 5. But it is no longer possible to switch the parser version when using this project.

Full Changelog: phpDocumentor/Reflection@5.3.3...6.0.0

Commits
  • 61e2f1f Add attribute support to more elements
  • 5953c00 Merge pull request #573 from phpDocumentor/dependabot/composer/squizlabs/php_...
  • 7783383 Bump squizlabs/php_codesniffer from 3.10.0 to 3.10.1
  • 215535d Merge pull request #572 from phpDocumentor/dependabot/composer/phpdocumentor/...
  • 3cdff23 ---
  • ac4b87e Merge pull request #571 from phpDocumentor/dependabot/composer/squizlabs/php_...
  • 92c2f8a Merge pull request #570 from phpDocumentor/dependabot/composer/rector/rector-...
  • 0442d51 Build(deps-dev): bump squizlabs/php_codesniffer from 3.9.2 to 3.10.0
  • 0d4cec8 Build(deps-dev): bump rector/rector from 1.0.5 to 1.1.0
  • 48e0980 Merge pull request #569 from phpDocumentor/dependabot/composer/mockery/mocker...
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [phpdocumentor/reflection](https://github.com/phpDocumentor/Reflection) to permit the latest version.
- [Release notes](https://github.com/phpDocumentor/Reflection/releases)
- [Commits](phpDocumentor/Reflection@5.2.0...6.0.0)

---
updated-dependencies:
- dependency-name: phpdocumentor/reflection
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants