Releases: BrianHenryIE/strauss
Releases · BrianHenryIE/strauss
v0.19.4
v0.19.3
- Fix #114, handle @ symbol for error suppression. Thanks @Razorbacktrack 7212a4d...2e0a2f8
- Fix #115, handle
preg_replace...
returningnull
inLicenser
. Thanks @Razorbacktrack 6ba3d09 - Fix #119, only search for symbols in PHP files. Thanks @Dartui 2e0a2f8...d046e3f
v0.19.2
v0.19.1
- Fix: was incorrectly deleting autoload keys from
installed.json
Fix #101 07c4945 Thanks @leewillis77
v0.19.0
Mostly a bugfix release but added a little too.
- Fix: check for array before loop Fix #101 Thanks @leewillis77
- Fix: filepaths on Windows (still work to do for Windows) PR #100. Thanks @szaleq
- Update: tidy
bin/strauss
PR #97 Thanks @szepeviktor - Add:
scripts/createphar.sh
; run tests with project classes + with built phar 34cc59f - Allow
symfony/console
&symfony/finder
^7
for Laravel 11 compatibility PR #102 Thanks @arjen-mediasoep - Lint: most PhpStan level 7 eeecbb7
v0.18.0
- Add: GitHub Action to update bin version number from CHANGELOG.md Fix #90. 1874b3b. Thanks @ravinderk
- Fix: casting a namespaced class to a string. Fix #88. 6487af4 Thanks @sovetski
- Fix:
composer dump-autoload
error afterdelete-vendor-files
/delete-vendor-packages
Fix #87, #93. f53236b. Thanks @estevao90, @JUVOJustin - Fix: add missing built-in PHP interfaces to exclude rules. Fix #91. a48ad69, 63d781d. Thanks @sovetski
- Fix:
Undefined offset
when seeingnamespace
. Fix #91. 7c32120. Thanks @sovetski - Refactoring for clarity and pending issues
v0.17.0
What's Changed
- Add
--deleteVendorPackages=true
CLI argument, thanks @defunctl 73d2d3e - Update README.md by @UVLabs in #63
- Fix: failed when casting a namespaced class to a string. by @sovetski in #89
- Fix: Handle symlinks properly by @doekenorg in #84
- Fix: mistakenly identifying namespaces in comments, by @sovetski in #91
Fix: wrong version number in bin,thanks @ravinderk 3ad5c9d #90
New Contributors
- @sovetski made their first contribution in #89
- @UVLabs made their first contribution in #63
- @doekenorg made their first contribution in #84
Full Changelog: 0.16.0...0.17.0
v0.16.0
Breaking change:
This will affect polyfill libraries, where they define classes with the same name as newer PHP versions.
Fix:
- Symlinked files autoloaders package used incorrect relative path af1ac75 Fix #78
- Check individual
files
autoloaders' files againstexclude_from_copy/file_patterns
6ab4064 Fix #67 - After copying
files
autoloaders' files and deleting them, Composer's autoloader was trying to autoload the deleted files #34 delete_vendor_files
now correctly deletes empty subdirs- CLI logs are now printing
- Prefix
instanceof ...
67f471a - Incorrect order in
str_starts_with()
was causing duplicate prefixes #34 - Use league/flysystem
^2.1|^3.0
014faac #39 - Prevent unnecessary recursion/infinite loop d26e040 Fix #73
- Don't delete symlinked packages 03b8814, just unlink them 503f110 when
deleteVendorPackages
is true. #64
v0.15.0
Most of the changes are around using vendor
as the target-directory. Fixing #52 @evrpress, #34 @coder-at-heart @pbowyer
And using Strauss to update call sites of the prefixed packages, i.e. to make introducing Strauss to an existing project much easier.
This can be done with strauss --updateCallSites=true
or setting the update_call_sites
key to true
or an array of paths in the Composer / extra / strauss config.
Thanks to @tobeyadr @groundhoggwp
- Fix: double-prefixing when using phar #70 Thanks @TussendoorHQ
- Fix:
\GlobalClass
in PhpDoc replacement was deleting function - Fix bug when
namespace
keyword on same line as<?php
. #80 Thanks @justlevine - Improve codecoverage.yml workflow. Thanks @szepeviktor
- Add PhpStan
- Add basic progress output
Documentation:
- Add
composer dump-autoload
note. Thanks @defunctl - Add Alternatives section
v0.14.1
- Move
PHP
fromrequire
torequire-dev
. Thanks @TimothyBJacobs - Ensure namespaced function calls begin with
\
. Fix #65. Thanks @kodie - When
use
ing global class, enable calling via new and old name inside namespace withuse Prefix_GlobalClass as GlobalClass;
. Fix #66. Thanks @tn3rb - Prefix
use function MyFunc;
. Fix #75. Thanks @danieliser - Update symfony/finder version. PR #71. Thanks @szaleq
- Update symfony/console version.
- Fix typos. PR #72. Thanks @szepeviktor
- GitHub Actions tests: change matrix
['7.4', '8.0']
->['7.4', '8.0', '8.1', '8.2', '8.3']
and add Windows (aspirational).