RFC about a set of contributions to solved some issues pending #630
Closed
llaville
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everybody,
I would like here to propose a version of
composer-unused/composer-unused
(andcomposer-unused/symbol-parser
)which have some little improvements against current versions [1] and [2].
[1] : https://github.com/composer-unused/composer-unused/releases/tag/0.8.11
[2] : https://github.com/composer-unused/symbol-parser/releases/tag/0.2.2
Of course these versions are not yet official, and all patches includes are not yet validated by @icanhazstring,
but if you and me want a better application/library with less issues, any feedback/tests will be welcome !
Hope all my explains will be enough to understand.
Listening on you !
TL;DR;
I would like especially highlight some bug fixes :
on
symbol-parser
PhpParser\Node\Expr\Closure::getParts()
inDefinedSymbolCollector
: initial reporter @WironeDefinedSymbolCollector
did not return traits and namespaces : initial reporter @llavilleConsumedSymbolCollector
accept invalid strategies : initial reporter @llavilleon
composer-unused
PhpParser\Node\Expr\Variable::getParts()
: initial reporter @simPodAn also highlight some new feature I've added :
on
symbol-parser
DefineStrategy
to replace theDefinedSymbolCollector
Now for details of this un-official version.
I've two forks of these projects (with at least a
contribs
branch that includes all patches) :9e4bb1c
verified only by me)7737a17
verified only be me)If you want to give it a try, and contribute yourself to improve stability of this project, it's your turn : test and report please !
IMPORTANT :
I've introduces specialized version of
NameContext
andNameResolver
components to detect elements identified by special class namesself
andparent
.But it's not applied on
composer-unused/composer-unused
source code of my fork.It'll allow you to see the different, without and with these new specialized versions.
Replace all import
use PhpParser\NodeVisitor\NameResolver
byuse ComposerUnused\SymbolParser\Parser\PHP\NameResolver
.For example :
Beta Was this translation helpful? Give feedback.
All reactions