Generate stubs for any PHP extension.

Overview

php-ext-stubs-generator

Integrate Release Renew

Mutation Score Code Coverage Type Coverage

Latest Stable Version Total Downloads

Installation

Run

$ composer require --dev lctrs/php-ext-stubs-generator

Usage

$ php vendor/bin/generate-stubs-for-ext extension_name

By default, the command will places the generated stubs in a directory named stubs/ at the root of the project. You can change the name of this directory by passing a --target option to the command as below (nested directories are supported) :

php vendor/bin/generate-stubs-for-ext extension_name --target src/stubs/

Changelog

Please have a look at CHANGELOG.md.

Contributing

Please have a look at CONTRIBUTING.md.

License

This package is licensed using the MIT License.

Please have a look at LICENSE.md.

Comments
  • tools(deps): bump infection/infection from 0.25.5 to 0.26.8 in /.tools/infection

    tools(deps): bump infection/infection from 0.25.5 to 0.26.8 in /.tools/infection

    Bumps infection/infection from 0.25.5 to 0.26.8.

    Release notes

    Sourced from infection/infection's releases.

    Prefix thecodingmachine/safe in PHAR distribution

    Changed:

    • Remove thecodingmachine/safe from whitelist of Scoper config and prefix it for PHAR #1684

    Min PHP version - 8.0, upgrade libs, fix config file name wording

    Changed:

    • Upgrade Infection to minimum PHP 8.0 #1641
    • Use newer thecodingmachine/safe #1649

    Fixed:

    • Inconsistent configuration file name #1679

    Stand with Ukraine

    Added:

    image

    Upgrade ondram/ci-detector to the latest version

    Changed:

    Upgrade PHP Parser for PHP 8.1 support

    Fixed:

    Use merge-base (three dot diff) instead of direct diff

    Changed:

    • Use merge-base (three dot diff) instead of direct diff (#1653)

    Correctly handle base path for HTML logger

    Fixed:

    Correctly handle non UTF-8 characters in diff and process output for HTML logger

    Fixed:

    • Error Malformed UTF-8 characters, possibly incorrectly encoded on send Stryke dashboard report with tests that contain invalid UTF-8 characters #1643

    HTML logger, mutating only changed lines, show Ignored mutants

    Added:

    ... (truncated)

    Commits
    • 27727f9 Remove thecodingmachine/safe from whitelist of Scoper config and prefix it ...
    • 658c456 #StandWithUkraine (#1674)
    • 4a62f40 Updated tests to fix builds on both PHP 8.0 and 8.1 (#1682)
    • 5b8294c Fix inconsistent configuration file name (#1679)
    • 8110c02 Update README.md (#1676)
    • 90fe08d Upgrade ondram/ci-detector to latest version (#1669)
    • 4a1a2fd Allow newer thecodingmachine/safe (#1649)
    • d5329d6 Upgrade nikic/php-parser to 4.13.2 to fix errors on PHP 8.1
    • ae4435e Use merge-base (three dot diff) instead of direct diff for git-diff-ase (#165...
    • 4e21783 Merge branch '0.26'
    • 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 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 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)
    dependency 
    opened by dependabot[bot] 4
  • composer(deps-dev): bump doctrine/coding-standard from 9.0.0 to 11.0.0

    composer(deps-dev): bump doctrine/coding-standard from 9.0.0 to 11.0.0

    Bumps doctrine/coding-standard from 9.0.0 to 11.0.0.

    Release notes

    Sourced from doctrine/coding-standard's releases.

    11.0.0

    Release Notes for 11.0.0

    Backwards incompatible release (major)

    11.0.0

    BC break,CI,New rule

    BC break,Improvement

    BC break,Improvement,New rule

    10.0.0

    Release Notes for 10.0.0

    Backwards incompatible release (major)

    10.0.0

    • Total issues resolved: 0
    • Total pull requests resolved: 10
    • Total contributors: 2

    New rules

    Dependencies

    ... (truncated)

    Commits
    • b6660e1 Merge pull request #304 from derrabus/improvement/allow-string-interpolation
    • c140fc0 String interpolation: don't suggest sprintf()
    • 8c3c932 Merge pull request #303 from greg0ire/11.0.x
    • 3790b91 Merge remote-tracking branch 'origin/10.1.x' into 11.0.x
    • 21c24ed Merge pull request #302 from doctrine/10.0.x
    • 91106f7 Merge pull request #300 from greg0ire/adjust-expectations
    • 39c6b23 Merge pull request #290 from GaryJones/patch-1
    • 4e45530 Adjust expectations
    • f44190b Merge pull request #297 from doctrine/10.0.x
    • 05c815d Merge pull request #298 from simPod/attributes
    • 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 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 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)
    dependency 
    opened by dependabot[bot] 2
  • composer(deps-dev): bump phpstan/phpstan from 1.8.11 to 1.9.1

    composer(deps-dev): bump phpstan/phpstan from 1.8.11 to 1.9.1

    Bumps phpstan/phpstan from 1.8.11 to 1.9.1.

    Release notes

    Sourced from phpstan/phpstan's releases.

    1.9.1

    Improvements 🔧

    Bugfixes 🐛

    1.9.0

    Check out the article about this release!

    Major new features 🚀

    Bleeding edge 🔪

    If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon:

    ... (truncated)

    Commits
    • a59c8b5 PHPStan 1.9.1
    • c57a9f7 Update PHPUnit baseline
    • c67b9f6 Updated PHPStan to commit d91411b2ab280b5132ffdb93432d9842b938370f
    • 7054365 Updated PHPStan to commit e3055aec156fb97d6ce0799c4f67aacc0c68d821
    • 6e4e657 Updated PHPStan to commit 199f9552ee3b41288c69eb39bc24677c00c9e858
    • 485175b Updated PHPStan to commit 071320dab361ef35597a524cd472eff3e3531490
    • 14aacba Updated PHPStan to commit d0c971e2c7409d41c00c561f63a2ecdd98284f49
    • 6fa1422 Updated PHPStan to commit 111799b398b1d00e8948cb841f73a393f995912b
    • b1e22e8 Updated PHPStan to commit 26bf11c71e872b87001934275ab6975ecdd24099
    • 7fa3245 Update Doctrine ORM baseline
    • 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 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 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)
    dependency 
    opened by dependabot[bot] 2
  • composer(deps): bump roave/better-reflection from 5.11.0 to 6.4.0

    composer(deps): bump roave/better-reflection from 5.11.0 to 6.4.0

    Bumps roave/better-reflection from 5.11.0 to 6.4.0.

    Release notes

    Sourced from roave/better-reflection's releases.

    6.4.0

    Release Notes for 6.4.0

    Feature release (minor)

    6.4.0

    • Total issues resolved: 1
    • Total pull requests resolved: 5
    • Total contributors: 4

    renovate

    dependencies,enhancement

    enhancement

    dependencies,php

    6.3.0

    Release Notes for 6.3.0

    Feature release (minor)

    6.3.0

    • Total issues resolved: 2
    • Total pull requests resolved: 4
    • Total contributors: 4

    bug,reflection compatibility

    enhancement

    dependencies,php

    ... (truncated)

    Upgrade guide

    Sourced from roave/better-reflection's upgrade guide.

    Upgrade Documentation

    This document serves as a reference to upgrade your current BetterReflection installation if improvements, deprecations or backwards compatibility (BC) breakages occur.

    5.0.0

    BC Breaks

    • Removed the ability to monkey patch the code.
    • Doc block parsing has been removed:
      • \Roave\BetterReflection\Reflection\ReflectionMethod::getDocBlockReturnTypes()
      • \Roave\BetterReflection\Reflection\ReflectionFunction::getDocBlockReturnTypes()
      • \Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypes()
      • \Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypeStrings()
      • \Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypes()
      • \Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypeStrings()
    • Method \Roave\BetterReflection\Identifier\IdentifierType::isMatchingReflector() has been removed.
    • All adapters are final
    • ClassReflector, FunctionReflector and ConstantReflector have been removed. Use DefaultReflector to reflect all types.
    • Adapters don't have ::export() method anymore because these methods were removed from PHP. These methods have been removed:
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionClass::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionFunction::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionMethod::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionObject::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionParameter::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionProperty::export()
    • Casting to string is compatible with PHP:
      • string or NULL is now ?string
      • boolean is now bool
      • integer is now int
      • properties types are exported
    • CompilerContext is marked as @internal.

    4.0.0

    BC Breaks

    • The following classes no longer implement \Reflector. If you need something that implements \Reflector, you should wrap the BetterReflection in the appropriate \Roave\BetterReflection\Reflection\Adapter\* class.
      • \Roave\BetterReflection\Reflection\ReflectionClass
      • \Roave\BetterReflection\Reflection\ReflectionClassConstant
      • \Roave\BetterReflection\Reflection\ReflectionConstant
      • \Roave\BetterReflection\Reflection\ReflectionFunctionAbstract
      • \Roave\BetterReflection\Reflection\ReflectionFunction
      • \Roave\BetterReflection\Reflection\ReflectionMethod
      • \Roave\BetterReflection\Reflection\ReflectionObject
      • \Roave\BetterReflection\Reflection\ReflectionParameter
      • \Roave\BetterReflection\Reflection\ReflectionProperty
    • The $stubber parameter of Roave\BetterReflection\SourceLocator\Type\EvaledCodeSourceLocator and Roave\BetterReflection\SourceLocator\Type\PhpInternalSourceLocator constructors is now required.

    ... (truncated)

    Commits
    • 6afe50d Merge pull request #1298 from kukulich/anonymous-class
    • 36dda02 Optimized ReflectionClass::getName() for anonymous classes
    • 5cce704 Merge pull request #1301 from Roave/renovate/ramsey-composer-install-rollback
    • d7bab06 Merge pull request #1302 from Roave/renovate/roave-backward-compatibility-che...
    • c370d6f Update dependency roave/backward-compatibility-check to v7
    • 58d31f4 Roll back ramsey/composer-install action to 2.1.0
    • 5fd7c80 Merge pull request #1299 from Roave/renovate/configure
    • 00087fe Removed dependabot: we migrate to renovate
    • eecea12 Using @​Ocramius' opinionated renovate config
    • 9b55c55 Merge pull request #1292 from Roave/dependabot/composer/roave/infection-stati...
    • 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 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 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)
    dependency 
    opened by dependabot[bot] 2
  • composer(deps): bump roave/better-reflection from 5.11.0 to 6.3.0

    composer(deps): bump roave/better-reflection from 5.11.0 to 6.3.0

    Bumps roave/better-reflection from 5.11.0 to 6.3.0.

    Release notes

    Sourced from roave/better-reflection's releases.

    6.3.0

    Release Notes for 6.3.0

    Feature release (minor)

    6.3.0

    • Total issues resolved: 2
    • Total pull requests resolved: 4
    • Total contributors: 4

    bug,reflection compatibility

    enhancement

    dependencies,php

    6.2.0

    Release Notes for 6.2.0

    Feature release (minor)

    6.2.0

    • Total issues resolved: 0
    • Total pull requests resolved: 3
    • Total contributors: 2

    enhancement

    dependencies,php

    6.1.0

    Release Notes for 6.1.0

    Feature release (minor)

    6.1.0

    ... (truncated)

    Upgrade guide

    Sourced from roave/better-reflection's upgrade guide.

    Upgrade Documentation

    This document serves as a reference to upgrade your current BetterReflection installation if improvements, deprecations or backwards compatibility (BC) breakages occur.

    5.0.0

    BC Breaks

    • Removed the ability to monkey patch the code.
    • Doc block parsing has been removed:
      • \Roave\BetterReflection\Reflection\ReflectionMethod::getDocBlockReturnTypes()
      • \Roave\BetterReflection\Reflection\ReflectionFunction::getDocBlockReturnTypes()
      • \Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypes()
      • \Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypeStrings()
      • \Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypes()
      • \Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypeStrings()
    • Method \Roave\BetterReflection\Identifier\IdentifierType::isMatchingReflector() has been removed.
    • All adapters are final
    • ClassReflector, FunctionReflector and ConstantReflector have been removed. Use DefaultReflector to reflect all types.
    • Adapters don't have ::export() method anymore because these methods were removed from PHP. These methods have been removed:
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionClass::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionFunction::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionMethod::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionObject::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionParameter::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionProperty::export()
    • Casting to string is compatible with PHP:
      • string or NULL is now ?string
      • boolean is now bool
      • integer is now int
      • properties types are exported
    • CompilerContext is marked as @internal.

    4.0.0

    BC Breaks

    • The following classes no longer implement \Reflector. If you need something that implements \Reflector, you should wrap the BetterReflection in the appropriate \Roave\BetterReflection\Reflection\Adapter\* class.
      • \Roave\BetterReflection\Reflection\ReflectionClass
      • \Roave\BetterReflection\Reflection\ReflectionClassConstant
      • \Roave\BetterReflection\Reflection\ReflectionConstant
      • \Roave\BetterReflection\Reflection\ReflectionFunctionAbstract
      • \Roave\BetterReflection\Reflection\ReflectionFunction
      • \Roave\BetterReflection\Reflection\ReflectionMethod
      • \Roave\BetterReflection\Reflection\ReflectionObject
      • \Roave\BetterReflection\Reflection\ReflectionParameter
      • \Roave\BetterReflection\Reflection\ReflectionProperty
    • The $stubber parameter of Roave\BetterReflection\SourceLocator\Type\EvaledCodeSourceLocator and Roave\BetterReflection\SourceLocator\Type\PhpInternalSourceLocator constructors is now required.

    ... (truncated)

    Commits
    • 54bd4ad Merge pull request #1286 from kukulich/reflection-compatibility
    • 66c2712 Fixed ReflectionEnum::getCase()/hasCase() adapters compatibility with native ...
    • fdbc0d8 Fixed Reflection*::getConstant()/getReflectionConstant()/hasConstant() adapte...
    • ce7ffdf Fixed Reflection*::getProperty()/hasProperty()/getStaticPropertyValue()/setSt...
    • 601f824 Fixed Reflection*::getMethod()/hasMethod() adapters compatibility with native...
    • adcb77c Merge pull request #1285 from kukulich/code-location
    • e47603d Reflection*::getStartLine()/getEndLine()/getStartColumn()/getEndColumn() thro...
    • 09b8faa Merge pull request #1284 from kukulich/mutant
    • 15d3b2f Kill the last mutant in ReflectionClass::getProperties()
    • fd8ac49 Bump phpstan/phpstan from 1.8.8 to 1.8.9
    • 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 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 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)
    dependency 
    opened by dependabot[bot] 2
  • composer(deps): bump roave/better-reflection from 5.11.0 to 6.2.0

    composer(deps): bump roave/better-reflection from 5.11.0 to 6.2.0

    Bumps roave/better-reflection from 5.11.0 to 6.2.0.

    Release notes

    Sourced from roave/better-reflection's releases.

    6.2.0

    Release Notes for 6.2.0

    Feature release (minor)

    6.2.0

    • Total issues resolved: 0
    • Total pull requests resolved: 3
    • Total contributors: 2

    enhancement

    dependencies,php

    6.1.0

    Release Notes for 6.1.0

    Feature release (minor)

    6.1.0

    • Total issues resolved: 1
    • Total pull requests resolved: 7
    • Total contributors: 4

    enhancement

    bug

    dependencies,php

    6.0.0

    Release Notes for 6.0.0

    ... (truncated)

    Upgrade guide

    Sourced from roave/better-reflection's upgrade guide.

    Upgrade Documentation

    This document serves as a reference to upgrade your current BetterReflection installation if improvements, deprecations or backwards compatibility (BC) breakages occur.

    5.0.0

    BC Breaks

    • Removed the ability to monkey patch the code.
    • Doc block parsing has been removed:
      • \Roave\BetterReflection\Reflection\ReflectionMethod::getDocBlockReturnTypes()
      • \Roave\BetterReflection\Reflection\ReflectionFunction::getDocBlockReturnTypes()
      • \Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypes()
      • \Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypeStrings()
      • \Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypes()
      • \Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypeStrings()
    • Method \Roave\BetterReflection\Identifier\IdentifierType::isMatchingReflector() has been removed.
    • All adapters are final
    • ClassReflector, FunctionReflector and ConstantReflector have been removed. Use DefaultReflector to reflect all types.
    • Adapters don't have ::export() method anymore because these methods were removed from PHP. These methods have been removed:
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionClass::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionFunction::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionMethod::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionObject::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionParameter::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionProperty::export()
    • Casting to string is compatible with PHP:
      • string or NULL is now ?string
      • boolean is now bool
      • integer is now int
      • properties types are exported
    • CompilerContext is marked as @internal.

    4.0.0

    BC Breaks

    • The following classes no longer implement \Reflector. If you need something that implements \Reflector, you should wrap the BetterReflection in the appropriate \Roave\BetterReflection\Reflection\Adapter\* class.
      • \Roave\BetterReflection\Reflection\ReflectionClass
      • \Roave\BetterReflection\Reflection\ReflectionClassConstant
      • \Roave\BetterReflection\Reflection\ReflectionConstant
      • \Roave\BetterReflection\Reflection\ReflectionFunctionAbstract
      • \Roave\BetterReflection\Reflection\ReflectionFunction
      • \Roave\BetterReflection\Reflection\ReflectionMethod
      • \Roave\BetterReflection\Reflection\ReflectionObject
      • \Roave\BetterReflection\Reflection\ReflectionParameter
      • \Roave\BetterReflection\Reflection\ReflectionProperty
    • The $stubber parameter of Roave\BetterReflection\SourceLocator\Type\EvaledCodeSourceLocator and Roave\BetterReflection\SourceLocator\Type\PhpInternalSourceLocator constructors is now required.

    ... (truncated)

    Commits
    • 55b947f Merge pull request #1272 from Roave/dependabot/composer/phpstan/phpstan-1.8.8
    • 826c610 Merge pull request #1273 from kukulich/coverage
    • c183896 Added missing test for ReflectionClass::getProperties()
    • 9d785d2 All ReflectionClassStringCast tests could run on PHP 8.0
    • 8fbf3e5 Added missing tests for ReflectionClass::getProperties()
    • 1eb943e Removed dead clone
    • 971e01e More tests and some fixes for ReflectionClass::getMethods()
    • a82a1d7 Kill false positives mutants in NodeToReflection
    • 1ec830a Bump phpstan/phpstan from 1.8.7 to 1.8.8
    • 5b4defd Bump phpstan/phpstan from 1.8.6 to 1.8.7
    • 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 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 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)
    dependency 
    opened by dependabot[bot] 2
  • composer(deps): bump roave/better-reflection from 5.11.0 to 6.1.0

    composer(deps): bump roave/better-reflection from 5.11.0 to 6.1.0

    Bumps roave/better-reflection from 5.11.0 to 6.1.0.

    Release notes

    Sourced from roave/better-reflection's releases.

    6.1.0

    Release Notes for 6.1.0

    Feature release (minor)

    6.1.0

    • Total issues resolved: 1
    • Total pull requests resolved: 7
    • Total contributors: 4

    enhancement

    bug

    dependencies,php

    6.0.0

    Release Notes for 6.0.0

    Backwards incompatible release (major)

    Notable breakages:

    [BC] CHANGED: Roave\BetterReflection\Reflection\ReflectionUnionType#getTypes() now returns a non-empty-list<ReflectionNamedType|ReflectionIntersectionType>, where it previously returned list<ReflectionNamedType>
    [BC] CHANGED: Roave\BetterReflection\SourceLocator\Type\StringSourceLocator::__construct() parameter type changed from string to a non-contravariant non-empty-stringallowsNull
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassLoaderMethod\Exception\SignatureCheckFailed has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassLoaderMethod\FileCacheLoader has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassLoaderMethod\LoaderMethodInterface has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassLoaderMethod\EvalLoader has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\Exception\FailedToLoadClass has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\Exception\ClassAlreadyRegistered has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\Exception\ClassAlreadyLoaded has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassPrinter\ClassPrinterInterface has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassPrinter\PhpParserPrinter has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassLoader has been deleted
    [BC] REMOVED: Method Roave\BetterReflection\Reflection\Adapter\ReflectionProperty#isAccessible() was removed
    [BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionEnum#__construct() was removed
    [BC] CHANGED: Method __construct() of class Roave\BetterReflection\Reflection\ReflectionEnum visibility reduced from protected to private
    </tr></table> 
    

    ... (truncated)

    Upgrade guide

    Sourced from roave/better-reflection's upgrade guide.

    Upgrade Documentation

    This document serves as a reference to upgrade your current BetterReflection installation if improvements, deprecations or backwards compatibility (BC) breakages occur.

    5.0.0

    BC Breaks

    • Removed the ability to monkey patch the code.
    • Doc block parsing has been removed:
      • \Roave\BetterReflection\Reflection\ReflectionMethod::getDocBlockReturnTypes()
      • \Roave\BetterReflection\Reflection\ReflectionFunction::getDocBlockReturnTypes()
      • \Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypes()
      • \Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypeStrings()
      • \Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypes()
      • \Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypeStrings()
    • Method \Roave\BetterReflection\Identifier\IdentifierType::isMatchingReflector() has been removed.
    • All adapters are final
    • ClassReflector, FunctionReflector and ConstantReflector have been removed. Use DefaultReflector to reflect all types.
    • Adapters don't have ::export() method anymore because these methods were removed from PHP. These methods have been removed:
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionClass::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionFunction::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionMethod::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionObject::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionParameter::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionProperty::export()
    • Casting to string is compatible with PHP:
      • string or NULL is now ?string
      • boolean is now bool
      • integer is now int
      • properties types are exported
    • CompilerContext is marked as @internal.

    4.0.0

    BC Breaks

    • The following classes no longer implement \Reflector. If you need something that implements \Reflector, you should wrap the BetterReflection in the appropriate \Roave\BetterReflection\Reflection\Adapter\* class.
      • \Roave\BetterReflection\Reflection\ReflectionClass
      • \Roave\BetterReflection\Reflection\ReflectionClassConstant
      • \Roave\BetterReflection\Reflection\ReflectionConstant
      • \Roave\BetterReflection\Reflection\ReflectionFunctionAbstract
      • \Roave\BetterReflection\Reflection\ReflectionFunction
      • \Roave\BetterReflection\Reflection\ReflectionMethod
      • \Roave\BetterReflection\Reflection\ReflectionObject
      • \Roave\BetterReflection\Reflection\ReflectionParameter
      • \Roave\BetterReflection\Reflection\ReflectionProperty
    • The $stubber parameter of Roave\BetterReflection\SourceLocator\Type\EvaledCodeSourceLocator and Roave\BetterReflection\SourceLocator\Type\PhpInternalSourceLocator constructors is now required.

    ... (truncated)

    Commits
    • 1a04b2f Merge pull request #1266 from kukulich/optimization
    • da393a2 Small optimization in ReflectionClass::getInterfacesHierarchy() - clone shoul...
    • 25a0078 Optimisation of getting constants in ReflectionClass
    • 1cfb32c Optimisation of getting properties in ReflectionClass
    • 67c1d0e Optimisation of getting methods in ReflectionClass
    • 60791bb Merge pull request #1270 from kukulich/interfaces
    • 6778a6f Optimisation of getting methods, properties and constants from interfaces
    • 877efaf Merge pull request #1269 from kukulich/circular-interface
    • b941631 Fixed detection of interface circular reference
    • 3af116f Merge pull request #1265 from herndlm/fix-stringable
    • 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 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 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)
    dependency 
    opened by dependabot[bot] 2
  • composer(deps): bump roave/better-reflection from 5.11.0 to 6.0.0

    composer(deps): bump roave/better-reflection from 5.11.0 to 6.0.0

    Bumps roave/better-reflection from 5.11.0 to 6.0.0.

    Release notes

    Sourced from roave/better-reflection's releases.

    6.0.0

    Release Notes for 6.0.0

    Backwards incompatible release (major)

    Notable breakages:

    [BC] CHANGED: Roave\BetterReflection\Reflection\ReflectionUnionType#getTypes() now returns a non-empty-list<ReflectionNamedType|ReflectionIntersectionType>, where it previously returned list<ReflectionNamedType>
    [BC] CHANGED: Roave\BetterReflection\SourceLocator\Type\StringSourceLocator::__construct() parameter type changed from string to a non-contravariant non-empty-stringallowsNull
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassLoaderMethod\Exception\SignatureCheckFailed has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassLoaderMethod\FileCacheLoader has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassLoaderMethod\LoaderMethodInterface has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassLoaderMethod\EvalLoader has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\Exception\FailedToLoadClass has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\Exception\ClassAlreadyRegistered has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\Exception\ClassAlreadyLoaded has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassPrinter\ClassPrinterInterface has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassPrinter\PhpParserPrinter has been deleted
    [BC] REMOVED: Class Roave\BetterReflection\Util\Autoload\ClassLoader has been deleted
    [BC] REMOVED: Method Roave\BetterReflection\Reflection\Adapter\ReflectionProperty#isAccessible() was removed
    [BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionEnum#__construct() was removed
    [BC] CHANGED: Method __construct() of class Roave\BetterReflection\Reflection\ReflectionEnum visibility reduced from protected to private
    [BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionClass#__construct() was removed
    [BC] CHANGED: Roave\BetterReflection\Reflection\ReflectionClass#__construct() was marked "@internal"
    [BC] REMOVED: Class Roave\BetterReflection\SourceLocator\Exception\EmptyPhpSourceCode has been deleted
    [BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$reflector was removed
    [BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$owner was removed
    [BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionUnionType#__construct() was removed
    [BC] CHANGED: Property Roave\BetterReflection\Reflection\ReflectionType#$reflector visibility reduced from protected to private
    [BC] CHANGED: Property Roave\BetterReflection\Reflection\ReflectionType#$owner visibility reduced from protected to private
    [BC] CHANGED: Roave\BetterReflection\Reflection\ReflectionUnionType#__construct() was marked "@internal"
    [BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$reflector was removed
    [BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$owner was removed
    [BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionNamedType#__construct() was removed
    [BC] CHANGED: Property Roave\BetterReflection\Reflection\ReflectionType#$reflector visibility reduced from protected to private
    [BC] CHANGED: Property Roave\BetterReflection\Reflection\ReflectionType#$owner visibility reduced from protected to private
    [BC] CHANGED: Roave\BetterReflection\Reflection\ReflectionNamedType#__construct() was marked "@internal"
    [BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$reflector was removed
    [BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$owner was removed
    [BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionType#__construct() was removed
    [BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$reflector was removed
    [BC] REMOVED: Property Roave\BetterReflection\Reflection\ReflectionType#$owner was removed
    [BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionIntersectionType#__construct() was removed
    [BC] CHANGED: Property Roave\BetterReflection\Reflection\ReflectionType#$reflector visibility reduced from protected to private
    [BC] CHANGED: Property Roave\BetterReflection\Reflection\ReflectionType#$owner visibility reduced from protected to private
    [BC] CHANGED: Roave\BetterReflection\Reflection\ReflectionIntersectionType#__construct() was marked "@internal"
    [BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionEnum#__construct() was removed
    [BC] CHANGED: Method __construct() of class Roave\BetterReflection\Reflection\ReflectionEnum visibility reduced from protected to private
    [BC] REMOVED: Method Roave\BetterReflection\Reflection\ReflectionClass#__construct() was removed
    </tr></table> 
    

    ... (truncated)

    Upgrade guide

    Sourced from roave/better-reflection's upgrade guide.

    Upgrade Documentation

    This document serves as a reference to upgrade your current BetterReflection installation if improvements, deprecations or backwards compatibility (BC) breakages occur.

    5.0.0

    BC Breaks

    • Removed the ability to monkey patch the code.
    • Doc block parsing has been removed:
      • \Roave\BetterReflection\Reflection\ReflectionMethod::getDocBlockReturnTypes()
      • \Roave\BetterReflection\Reflection\ReflectionFunction::getDocBlockReturnTypes()
      • \Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypes()
      • \Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypeStrings()
      • \Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypes()
      • \Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypeStrings()
    • Method \Roave\BetterReflection\Identifier\IdentifierType::isMatchingReflector() has been removed.
    • All adapters are final
    • ClassReflector, FunctionReflector and ConstantReflector have been removed. Use DefaultReflector to reflect all types.
    • Adapters don't have ::export() method anymore because these methods were removed from PHP. These methods have been removed:
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionClass::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionFunction::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionMethod::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionObject::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionParameter::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionProperty::export()
    • Casting to string is compatible with PHP:
      • string or NULL is now ?string
      • boolean is now bool
      • integer is now int
      • properties types are exported
    • CompilerContext is marked as @internal.

    4.0.0

    BC Breaks

    • The following classes no longer implement \Reflector. If you need something that implements \Reflector, you should wrap the BetterReflection in the appropriate \Roave\BetterReflection\Reflection\Adapter\* class.
      • \Roave\BetterReflection\Reflection\ReflectionClass
      • \Roave\BetterReflection\Reflection\ReflectionClassConstant
      • \Roave\BetterReflection\Reflection\ReflectionConstant
      • \Roave\BetterReflection\Reflection\ReflectionFunctionAbstract
      • \Roave\BetterReflection\Reflection\ReflectionFunction
      • \Roave\BetterReflection\Reflection\ReflectionMethod
      • \Roave\BetterReflection\Reflection\ReflectionObject
      • \Roave\BetterReflection\Reflection\ReflectionParameter
      • \Roave\BetterReflection\Reflection\ReflectionProperty
    • The $stubber parameter of Roave\BetterReflection\SourceLocator\Type\EvaledCodeSourceLocator and Roave\BetterReflection\SourceLocator\Type\PhpInternalSourceLocator constructors is now required.

    ... (truncated)

    Commits
    • 392fc73 Merge pull request #1256 from herndlm/trait-circular-ref3
    • 964ed93 Merge pull request #1258 from kukulich/properties
    • fbecc59 Fixed return type of ReflectionClass::getDefaultProperties()
    • 6d730d5 Rename AlreadyVisitedClasses parameters
    • b21ae55 Implement requested code review changes
    • a594f4e Use ClassNameStack object to avoid passing by-ref
    • 4f9aa70 Merge pull request #1257 from kukulich/current-class
    • f54ab2a Also test circular class and interface refs when getting constants/methods/pr...
    • 42b51ec Rename newly added internal methods
    • efd6c21 Improve structure of $classNameStack for search performance
    • 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 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 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)
    dependency 
    opened by dependabot[bot] 2
  • composer(deps): bump sebastian/type from 3.1.0 to 3.2.0

    composer(deps): bump sebastian/type from 3.1.0 to 3.2.0

    Bumps sebastian/type from 3.1.0 to 3.2.0.

    Changelog

    Sourced from sebastian/type's changelog.

    [3.2.0] - 2022-09-12

    Added

    • #25: Support Disjunctive Normal Form types
    • Added ReflectionMapper::fromParameterTypes()
    • Added IntersectionType::types() and UnionType::types()
    • Added UnionType::containsIntersectionTypes()
    Commits
    • fb3fe09 Prepare release
    • 9bc9083 Revert "Revert "Implement IntersectionType::types() and UnionType::types()""
    • e53e8f0 Revert "Implement Type::fromString()"
    • 8f8022e Revert "Implement IntersectionType::types() and UnionType::types()"
    • f75222e Revert "Map empty string to UnknownType"
    • 4735bd7 Map empty string to UnknownType
    • 1d3f403 Implement IntersectionType::types() and UnionType::types()
    • 197a627 These lists cannot be empty
    • 151c8c6 Add type assertions
    • 9ca5e38 Implement Type::fromString()
    • 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 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 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)
    dependency 
    opened by dependabot[bot] 2
  • composer(deps): bump nikic/php-parser from 4.14.0 to 4.15.1

    composer(deps): bump nikic/php-parser from 4.14.0 to 4.15.1

    ⚠️ Dependabot is rebasing this PR ⚠️

    Rebasing might not happen immediately, so don't worry if this takes some time.

    Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


    Bumps nikic/php-parser from 4.14.0 to 4.15.1.

    Release notes

    Sourced from nikic/php-parser's releases.

    PHP-Parser 4.15.1

    Fixed

    • Fixed formatting preservation when adding multiple attributes to a class/method/etc that previously had none. This fixes a regression in the 4.15.0 release.

    PHP-Parser 4.15.0

    Added

    • PHP 8.2: Added support for true type.
    • PHP 8.2: Added support for DNF types.

    Fixed

    • Support readonly as a function name.
    • Added __serialize and __unserialize to magic method list.
    • Fixed bounds check in Name::slice().
    • Fixed formatting preservation when adding attributes to a class/method/etc that previously had none.
    Changelog

    Sourced from nikic/php-parser's changelog.

    Version 4.15.1 (2022-09-04)

    Fixed

    • Fixed formatting preservation when adding multiple attributes to a class/method/etc that previously had none. This fixes a regression in the 4.15.0 release.

    Version 4.15.0 (2022-09-03)

    Added

    • PHP 8.2: Added support for true type.
    • PHP 8.2: Added support for DNF types.

    Fixed

    • Support readonly as a function name.
    • Added __serialize and __unserialize to magic method list.
    • Fixed bounds check in Name::slice().
    • Fixed formatting preservation when adding attributes to a class/method/etc that previously had none.
    Commits
    • 0ef6c55 Release PHP-Parser 4.15.1
    • 8216e87 Fix empty list insertion of multiple attributes
    • 617d022 Release PHP-Parser 4.15.0
    • a951e9e Add support for DNF types (#862)
    • b30e7e7 Support empty list insertion for attributes
    • ff24d1d Fix length bounds check in Name::slice()
    • e55f8c6 Add __serialize/__unserialize to ClassMethod::$magicNames
    • 3ee592b Handle true/false/null types in builder APIs
    • 3fe2422 Add support for true type
    • 2d58992 Fix incorrect doc type
    • 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 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 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)
    dependency 
    opened by dependabot[bot] 2
  • composer(deps-dev): bump doctrine/coding-standard from 9.0.0 to 10.0.0

    composer(deps-dev): bump doctrine/coding-standard from 9.0.0 to 10.0.0

    Bumps doctrine/coding-standard from 9.0.0 to 10.0.0.

    Release notes

    Sourced from doctrine/coding-standard's releases.

    10.0.0

    Release Notes for 10.0.0

    Backwards incompatible release (major)

    10.0.0

    • Total issues resolved: 0
    • Total pull requests resolved: 10
    • Total contributors: 2

    New rules

    Dependencies

    Internal

    9.0.2

    This release is the same as 9.0.0, in order to "cancel" 9.0.1, which had many breaking changes.

    9.0.1

    Release Notes for 9.0.1

    9.0.x bugfix release (patch)

    9.0.1

    Commits
    • 7903671 Merge pull request #283 from greg0ire/require-cpp
    • b7e1a4b Update compatibility patch
    • e0e1eed Require constructor property promotion
    • 720492b Merge pull request #282 from derrabus/improvement/reverse-patches
    • cb35b8f Upgrade fixtures to PHP 8.1 and reverse patches
    • e64b67f Merge pull request #281 from simPod/non-capture
    • b963e53 feat: require non-capturing catch
    • b63cd55 Merge pull request #274 from simPod/constant-spacing
    • 94ec677 feat: enforce spaces between constants
    • 51e2045 Merge pull request #279 from simPod/sniff-codes
    • 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 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 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)
    dependency 
    opened by dependabot[bot] 2
  • composer(deps-dev): bump doctrine/coding-standard from 9.0.0 to 11.1.0

    composer(deps-dev): bump doctrine/coding-standard from 9.0.0 to 11.1.0

    Bumps doctrine/coding-standard from 9.0.0 to 11.1.0.

    Release notes

    Sourced from doctrine/coding-standard's releases.

    11.1.0

    Release Notes for 11.1.0

    Feature release (minor)

    11.1.0

    • Total issues resolved: 0
    • Total pull requests resolved: 2
    • Total contributors: 2

    Improvements

    11.0.0

    Release Notes for 11.0.0

    Backwards incompatible release (major)

    11.0.0

    BC break,CI,New rule

    BC break,Improvement

    BC break,Improvement,New rule

    10.0.0

    Release Notes for 10.0.0

    Backwards incompatible release (major)

    10.0.0

    • Total issues resolved: 0

    ... (truncated)

    Commits
    • 4bcfa9d Merge pull request #308 from doctrine/11.0.x
    • eec72ad Merge pull request #306 from jrfnl/feature/update-for-1.0-release-of-composer...
    • 320ecf4 Composer: allow for the 1.0.0 version of the Composer PHPCS plugin
    • fade017 Merge pull request #307 from jrfnl/feature/ghactions-update-ubuntu
    • 42e9bf3 GH Actions: update ubuntu images used
    • 3a48106 Merge pull request #305 from greg0ire/update-branch-metadata
    • 80218f2 Update branch metadata
    • b6660e1 Merge pull request #304 from derrabus/improvement/allow-string-interpolation
    • c140fc0 String interpolation: don't suggest sprintf()
    • 8c3c932 Merge pull request #303 from greg0ire/11.0.x
    • 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 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 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)
    dependency 
    opened by dependabot[bot] 1
  • composer(deps): bump roave/better-reflection from 5.11.0 to 6.4.1

    composer(deps): bump roave/better-reflection from 5.11.0 to 6.4.1

    Bumps roave/better-reflection from 5.11.0 to 6.4.1.

    Release notes

    Sourced from roave/better-reflection's releases.

    6.4.1

    Release Notes for 6.4.1

    6.4.x bugfix release (patch)

    6.4.1

    • Total issues resolved: 1
    • Total pull requests resolved: 1
    • Total contributors: 2

    bug

    6.4.0

    Release Notes for 6.4.0

    Feature release (minor)

    6.4.0

    • Total issues resolved: 1
    • Total pull requests resolved: 5
    • Total contributors: 4

    renovate

    dependencies,enhancement

    enhancement

    dependencies,php

    6.3.0

    Release Notes for 6.3.0

    Feature release (minor)

    6.3.0

    ... (truncated)

    Upgrade guide

    Sourced from roave/better-reflection's upgrade guide.

    Upgrade Documentation

    This document serves as a reference to upgrade your current BetterReflection installation if improvements, deprecations or backwards compatibility (BC) breakages occur.

    5.0.0

    BC Breaks

    • Removed the ability to monkey patch the code.
    • Doc block parsing has been removed:
      • \Roave\BetterReflection\Reflection\ReflectionMethod::getDocBlockReturnTypes()
      • \Roave\BetterReflection\Reflection\ReflectionFunction::getDocBlockReturnTypes()
      • \Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypes()
      • \Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypeStrings()
      • \Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypes()
      • \Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypeStrings()
    • Method \Roave\BetterReflection\Identifier\IdentifierType::isMatchingReflector() has been removed.
    • All adapters are final
    • ClassReflector, FunctionReflector and ConstantReflector have been removed. Use DefaultReflector to reflect all types.
    • Adapters don't have ::export() method anymore because these methods were removed from PHP. These methods have been removed:
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionClass::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionFunction::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionMethod::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionObject::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionParameter::export()
      • \Roave\BetterReflection\Reflection\Adapter\ReflectionProperty::export()
    • Casting to string is compatible with PHP:
      • string or NULL is now ?string
      • boolean is now bool
      • integer is now int
      • properties types are exported
    • CompilerContext is marked as @internal.

    4.0.0

    BC Breaks

    • The following classes no longer implement \Reflector. If you need something that implements \Reflector, you should wrap the BetterReflection in the appropriate \Roave\BetterReflection\Reflection\Adapter\* class.
      • \Roave\BetterReflection\Reflection\ReflectionClass
      • \Roave\BetterReflection\Reflection\ReflectionClassConstant
      • \Roave\BetterReflection\Reflection\ReflectionConstant
      • \Roave\BetterReflection\Reflection\ReflectionFunctionAbstract
      • \Roave\BetterReflection\Reflection\ReflectionFunction
      • \Roave\BetterReflection\Reflection\ReflectionMethod
      • \Roave\BetterReflection\Reflection\ReflectionObject
      • \Roave\BetterReflection\Reflection\ReflectionParameter
      • \Roave\BetterReflection\Reflection\ReflectionProperty
    • The $stubber parameter of Roave\BetterReflection\SourceLocator\Type\EvaledCodeSourceLocator and Roave\BetterReflection\SourceLocator\Type\PhpInternalSourceLocator constructors is now required.

    ... (truncated)

    Commits
    • f3f3565 Merge pull request #1312 from kukulich/method-lines
    • 1873646 Fixed ReflectionMethod::getStartLine() and getEndLine() in adapter when code ...
    • 6afe50d Merge pull request #1298 from kukulich/anonymous-class
    • 36dda02 Optimized ReflectionClass::getName() for anonymous classes
    • 5cce704 Merge pull request #1301 from Roave/renovate/ramsey-composer-install-rollback
    • d7bab06 Merge pull request #1302 from Roave/renovate/roave-backward-compatibility-che...
    • c370d6f Update dependency roave/backward-compatibility-check to v7
    • 58d31f4 Roll back ramsey/composer-install action to 2.1.0
    • 5fd7c80 Merge pull request #1299 from Roave/renovate/configure
    • 00087fe Removed dependabot: we migrate to renovate
    • 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 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 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)
    dependency 
    opened by dependabot[bot] 1
Releases(0.2.0)
Owner
null
salah eddine bendyab 18 Aug 17, 2021
Track any ip address with IP-Tracer. IP-Tracer is developed for Linux and Termux. you can retrieve any ip address information using IP-Tracer.

IP-Tracer is used to track an ip address. IP-Tracer is developed for Termux and Linux based systems. you can easily retrieve ip address information using IP-Tracer. IP-Tracer use ip-api to track ip address.

Rajkumar Dusad 1.2k Jan 4, 2023
Magento 2 Extension to cleanup admin menu and Store > Configuration area by arranging third party extension items.

Clean Admin Menu - Magento 2 Extension It will merge all 3rd party extension's menu items in backend's primary menu to a common menu item named "Exten

RedChamps 109 Jan 3, 2023
Magento 2 Blog Extension is a better blog extension for Magento 2 platform. These include all useful features of Wordpress CMS

Magento 2 Blog extension FREE Magento 2 Better Blog by Mageplaza is integrated right into the Magento backend so you can manage your blog and your e-c

Mageplaza 113 Dec 14, 2022
PHP Meminfo is a PHP extension that gives you insights on the PHP memory content

MEMINFO PHP Meminfo is a PHP extension that gives you insights on the PHP memory content. Its main goal is to help you understand memory leaks: by loo

Benoit Jacquemont 994 Dec 29, 2022
The VarExporter component allows exporting any serializable PHP data structure to plain PHP code.

The VarExporter component allows exporting any serializable PHP data structure to plain PHP code. While doing so, it preserves all the semantics associated with the serialization mechanism of PHP (__wakeup, __sleep, Serializable).

Symfony 1.8k Jan 1, 2023
A pure PHP implementation of the open Language Server Protocol. Provides static code analysis for PHP for any IDE.

A pure PHP implementation of the open Language Server Protocol. Provides static code analysis for PHP for any IDE.

Felix Becker 1.1k Jan 4, 2023
Use Ray in any PHP script without requiring it in your projects.

Global Ray Use Ray in any PHP script without requiring it in your projects. Require this package globally with Composer: composer global require cuyz/

Team CuyZ 26 Jun 5, 2022
A small package to add computed properties to any PHP class. 🐘

Computed Properties This package provides a trait and attribute that can provide computed property support. Installation This package can be installed

Ryan Chandler 22 Mar 28, 2022
PHP library that helps to map any input into a strongly-typed value object structure.

Valinor • PHP object mapper with strong type support Valinor is a PHP library that helps to map any input into a strongly-typed value object structure

Team CuyZ 873 Jan 7, 2023
JsonQ is a simple, elegant PHP package to Query over any type of JSON Data

php-jsonq JsonQ is a simple, elegant PHP package to Query over any type of JSON Data. It'll make your life easier by giving the flavour of an ORM-like

Nahid Bin Azhar 834 Dec 25, 2022
Allows generate class files parse from json and map json to php object, including multi-level and complex objects;

nixihz/php-object Allows generate class files parse from json and map json to php object, including multi-level and complex objects; Installation You

zhixin 2 Sep 9, 2022
A small PHP library to generate YouTube-like ids from numbers.

A small PHP library to generate YouTube-like ids from numbers. Use it when you don't want to expose your database ids to the user.

Vincent Klaiber 4.9k Dec 30, 2022
Utilities to scan PHP code and generate class maps.

composer/class-map-generator Utilities to generate class maps and scan PHP code. Installation Install the latest version with: $ composer require comp

Composer 55 Dec 26, 2022
PHP Extension installer

pickle - PHP Extension installer Pickle installs PHP extensions easily on all platforms. Installation Grab the latest phar at https://github.com/Frien

null 1.6k Dec 27, 2022
PHP extension for V8 JavaScript engine

php-v8 PHP extension for V8 JavaScript engine This extension requires PHP >= 7.2. Last version that supports PHP 7.1 is v0.2.2 and for PHP 7.0 is v0.1

PHP V8 207 Nov 24, 2022
Easily install PHP extension in Docker containers

Easy installation of PHP extensions in official PHP Docker images This repository contains a script that can be used to easily install a PHP extension

Michele Locati 2.8k Jan 4, 2023
A PHP API extension the 'An API of Ice and Fire'

This documentation is meant to enable you to consume our API and get you started right away using your favourite programming language. All endpoints and HTTP methods to be used have been detailed with a sample example for e

David Syengo 1 Mar 26, 2022
JSONFinder - a library that can find json values in a mixed text or html documents, can filter and search the json tree, and converts php objects to json without 'ext-json' extension.

JSONFinder - a library that can find json values in a mixed text or html documents, can filter and search the json tree, and converts php objects to json without 'ext-json' extension.

Eboubaker Eboubaker 2 Jul 31, 2022