Releases: humbug/php-scoper
Releases · humbug/php-scoper
0.18.6
0.18.5
Features
- Add an inspect command (#868, #876)
- Do not swallow exceptions when scoping (#869)
- Make the JetBrains' stubs collector and patcher re-usable (#883)
- Mark all declarations as internal (#882)
- Add a docker image (#884)
Bugs
- Cleanup the autoloader from temporary variables (#866)
- Update the Reflector's symbols (#875)
- Correctly include all the JetBrains' stubs as excluded files (#874)
- Fix scoping of Symfony services (#839)
- Correctly scope
spl_autoload_register()
singule parameter (#887) - Correctly scope
is_callable()
calls (#888) - Correctly scope
call_user_func_array()
(#889) - Correct the Composer autoload (#864)
Misc
0.18.4
0.18.3
0.18.2
Bugfixes
- Handle the case where the Composer InstalledVersions.php file is not present (#830)
- Fix conflicting
humbug_phpscoper_expose_class
class declaration (#831, #811)
Misc
- ci: Simplify the security check workflow (#812)
- ci: Simplify the build workflow (#813)
- chore: Fix makefile CS (#814)
- ci: Review the Lint workflow (#815)
- chore: Remove PHPCS configuration file (#816)
- chore: Add gitignore sort (#817)
- ci: Add a meta build for the ComposerRootVersion tests (#818)
- ci: Remove matrix from jobs that are not matrices (#819)
- ci: Introduce a meta build for the unit tests (#820)
- chore: Move PHP-CS-Fixer and PHPUnit artefacts to the build directory (#821)
- chore: Exclude more files from the release artefact (#822)
- chore: Extract the e2e make test rules into a dedicated file (#825)
- chore: Tweak the ComposerRootVersionChecker related make commands (#826)
- chore: Add undesired lock files to the gitignore (#827)
- chore: Remove some commands from being documented in the Makefile (#828)
- chore(makefile): Improve the outdated_fixtures command (#829)
- chore(makefile): Re-organise the make commands (#824)
- chore: Use
build
directory instead ofdist
(#833)
0.18.1
0.18.0
Features
- feat: Update dependencies (#802)
Bugfixes
- fix: Bump the Composer root version (#787)
- fix: Remove unnecessary polyfill (#794)
- fix: Allow to use the default value for the output directory (#801)
Misc
- ci(refactor): Update the GitHub Actions steps (#785)
- ci(fix): Remove the env from the Composer root version (#788)
- refactor: Rework the composer root version checker into a proper sub-project (#789)
- fix: Fix the RootVersionChecker (#790)
- ci(refactor): Simplify the Composer installation in the CI (#791)
- ci(fix): Fix a test name (#795)
- ci(fix): Fix the lint jobs (#796)
- refactor: Rework the makefile test with FidryMakefile (#792)
- fix: Fix the e2e test 035 (#793)
- ci(feat): Add PHP 8.2 for the build (#797)
- refactor: Remove remaining usages of whitelist (#780)
- ci(feat): Add a new meta job for the protected branch rules for the tests (#799)
- ci(feat): Run the e2e tests on PHP 8.2 and also with different Composer versions (#798)
- build(fix): Remove unnecessary files from the exported archive (#800)
- ci(fix): Update actions/upload-artifact to v3 (from v2) (#803)
0.18.0-rc.0
This release is a another big release. It really aims at tackling some fundamental and long-standing issues that are preventing a 1.x release. The two main problems being:
- The handling of polyfills and declaring or usage of global constants as seen in (#)
- The broken autoloading of files (see #298)
This release is an RC as this brings significant changes that I would like to pay more attention to and evaluate or it will affect big users such as PHPUnit, PHPStan, Infection or Rector.
Feature
- Fix internal symbol declarations (#706 #710, #722)
- [BC break] Update the default config to expose the global symbols by default (#710)
- Fix the support of Composer autoloaded files (#773, #774)
- Complete the support for PHP 8.1 features
- Add support for Symfony6 (#711)
- Add support for Laravel9 (#747)
- Improve the scoper autoload file:
- Change the link for the alias docs in the scoped autoload (#714)
- Make function alias declaration one-liners (#715)
- Sort the exposed function entries (#716)
- Declare a function
humbug_php_scoper_expose_class()
to simplify the class alias declarations (#718) - Group function declarations by namespace (#719)
- Update all dependencies (#704, #772)
- Unmark
PatcherChain#getPatchers()
as internal (#737) - [BC Break] Don't allow empty string as a symbol regex or name (#741)
- [BC Break] Remove the deprecated whitelist setting (#742)
- Add
output-dir
configuration option (#632) - Add
Configuration::withPatcher()
factory (#749) - [BC Break] Remove deprecated
ConfigurableScoper
(#705)
Bugfixes
- Fix InstalledVersions installed (#712)
- Use the recorded symbols to decide when to add the
class_alias
statements (#724) - Preserve the files permissions (#753)
- Fix the
inspect-symbol
command slowness (#755) - Fix regex cannot have the
i
flag (#759) - Fix define check of class constant (#745, #746)
Misc
- Various documentation improvements (#739, #744, #763, #768, #770)
- Various internal refactorings (#702 #717, #720, #723, #735, #740, #743, #750, #754, #756, #758, #761, #764, #757, #760, #765, #766, #767, #769, #775, #776)
- Set
bamarni.foward-command
tofalse
(#703) - Add a build to check dependencies for security vulnerabilities (#736)
- Consolidate some tests (#709, #721, #748, #777, #778, #779)