Skip to content

Bump nette/php-generator from 4.2.2 to 4.2.4 - #36

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/nette/php-generator-4.2.4
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/nette/php-generator-4.2.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 1, 2026

Copy link
Copy Markdown
Contributor

Bumps nette/php-generator from 4.2.2 to 4.2.4.

Release notes

Sourced from nette/php-generator's releases.

Released version 4.2.4

🐛 Bug Fixes

  • fromCode() now keeps a file comment placed before declare(strict_types=1) (#182)
  • Extracting method and property hook bodies ignores the members of anonymous classes nested inside them
  • PropertyHookType is now an alias of PropertyAccessMode, so both enums are interchangeable wherever hooks are added or looked up

🛡️ Robustness

  • Invalid declarations now report a clear error when printed: a readonly property that is static or has a default value, a final private constant, an abstract final property hook, and an enum whose backing type is not int or string or whose case values do not match it
  • setHooks() validates hook types, and the presence of php-parser 5 is detected reliably, with a clear message when an older version is installed

Released version 4.2.3

✨ New Features

  • PHP 8.6 is now supported

🐛 Bug Fixes

  • Loading a class with ClassType::from() or fromCode() now keeps the types of typed class constants (PHP 8.3)
Commits
  • 19818e4 updated DOCS
  • fe70aef Extractor: reads file comment placed before declare(strict_types=1) [Closes #...
  • ff358e5 Extractor: deduplicated class/function node lookups
  • 4c3c00d PropertyHookType is alias of PropertyAccessMode
  • b5d3dcf Extractor: detects php-parser 5 reliably
  • f0e639e Extractor: ignores members of nested anonymous classes when extracting bodies
  • eb3254c PropertyHook: validates abstract final combination
  • 260188b PropertyLike: setHooks() validates hook types
  • 68955f8 Constant: validates final private combination
  • a59959c EnumType: validates backing type and consistency of case values
  • Additional commits viewable in compare view

Dependabot compatibility score

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 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)

Bumps [nette/php-generator](https://github.com/nette/php-generator) from 4.2.2 to 4.2.4.
- [Release notes](https://github.com/nette/php-generator/releases)
- [Commits](nette/php-generator@v4.2.2...v4.2.4)

---
updated-dependencies:
- dependency-name: nette/php-generator
  dependency-version: 4.2.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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 Nov 1, 2026
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.

0 participants